I created an issue for inserting a value for a con...
# announcements
s
I created an issue for inserting a value for a constant at compile time, the one feature I miss from Go. Link: https://youtrack.jetbrains.com/issue/KT-44386
d
I swear there's a compiler plugin for this.
I think it's called
BuildKonfig
or something.
s
Seems a lot more complex than necessary for the feature, though. This is more so codegen than what I had in mind.
d
Yeah, it's a bit much. Perhaps a compiler plugin could make this better.
Here's an example compiler plugin, if you're not familiar. https://github.com/bnorm/kotlin-power-assert
s
I could (and might) attempt writing a compiler plugin for this, though I do believe it's valuable enough to include as base compiler functionality. I'll give it some thought.