Restricted Marker Is Not An Opt In

Tell an opt-in marker from a restricted-to marker before adding suppressions — the first is enforced by the compiler and demands acknowledgement, the second demands nothing and means something different and worse; includes how to read which one an API carries straight out of the cached artifact, and why both conventions coexist in one library. Use when an `@OptIn` looks necessary but the same API compiles without it elsewhere, when the IDE offers a suppression for an annotation you have not read, or when deciding whether a library call is safe to depend on.

maxrave-dev Updated

File contents

maxrave-dev/kotlin-footguns/tree/main/skills/restricted-marker-is-not-an-opt-in commit e86aa7ba6a

Frequently asked questions

npx skillmds@latest add maxrave-dev/restricted-marker-is-not-an-opt-in