https://kotlinlang.org logo
#library-development
Title
# library-development
l

Lukellmann

07/23/2022, 4:54 PM
We have two different kinds of
@RequiresOptIn
annotations in our library. 1. Annotations for new experimental API that might change. 2. Annotations for API that is easy to use incorrectly. Which
AnnotationRetention
should be used in each case? (
BINARY
or
RUNTIME
,
SOURCE
isn't allowed)
i

Iaroslav Postovalov

07/27/2022, 6:22 PM
Official libraries usually just use
BINARY
for all the experimental annotations, even though nobody scans them through reflection.
6 Views