Lilly
05/28/2022, 10:16 PM@IntRange
annotation for kotlin which I can use in kotlin only module? @IntRange works at compilation time right?ephemient
05/28/2022, 10:30 PMLilly
05/28/2022, 10:42 PMChrimaeon
05/29/2022, 9:30 AMcheck(param in 1..3)
in your methods body at runtimeephemient
05/29/2022, 7:52 PMrequire
(IllegalArgumentException
) is better than check
(IllegalStateException
)ephemient
05/29/2022, 7:55 PM@IntRange
does. if you want compile-time validation, you can either apply Android Lint to a non-Android project (this is supported) or build your own, possibly on #arrow-meta as it has some support for enabling this kind of data flow analysisLilly
05/30/2022, 6:25 PMephemient
05/30/2022, 6:34 PMLilly
05/30/2022, 6:39 PM