Kotlin API Opt-In Requirements: Enforcement and Usage Patterns
In Kotlin 1.3.70, the @RequiresOptIn and @OptIn annotations replaced the older @Experimental and @UseExperimental markers, while the -Xopt-in compiler flag took the place of -Xuse-experimental.
The Kotlin standard library includes a mechanism to enforce explicit consent for using specific API elements. Library developers can flag APIs that requ ...
Posted on Wed, 23 Sep 2026 16:16:57 +0000 by playa4real