joelpedraza
05/20/2019, 1:27 PMStephan Schroeder
05/20/2019, 2:39 PMconst val
isn’t an option? (only works with compile-time constants) Apart from that I’m not aware of anything.joelpedraza
05/20/2019, 2:41 PMdata class Person(val name: String?)
I want to guarantee name will always return the same value, was hoping there would be a contract or annotation for itStephan Schroeder
05/20/2019, 2:43 PMjoelpedraza
05/20/2019, 2:45 PM@JvmField
on a val work this wayStephan Schroeder
05/20/2019, 2:47 PMjoelpedraza
05/20/2019, 2:59 PMclass Foo { val bar get() = Random.nextInt() }
Stephan Schroeder
05/20/2019, 3:25 PMjoelpedraza
05/20/2019, 3:27 PMMatej Drobnič
05/21/2019, 7:19 PM