Improve compile-time constants #453
Replies: 2 comments 1 reply
-
Not part of this nice proposal, but reusing the annotation in FIR and Ir should also allow to mark const function in dokka (only stdlib due to internal visibility) and IntelliJ, shouldn't it? Documentation is the biggest pain point of const values, why can I use |
Beta Was this translation helpful? Give feedback.
-
This seems to be quite important for me, thanks for the proposal. An example which I frequently come across is the usage of "text blocks" for annotation parameters. In java one can properly intend those, in kotlin only if empty space is ignored by the lib that provides them. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
This is the discussion for the Improve compile-time constants proposal. A full text can be found here.
This proposal describes the current state of Kotlin's compile-time constants, outlines some inconsistencies within the feature and proposes changes to fix them.
Beta Was this translation helpful? Give feedback.
All reactions