I recently converted a Spring Java app to Kotlin. ...
# announcements
n
I recently converted a Spring Java app to Kotlin. I manually converted all the autowired properties to
lateinit var
. But what I really wanted was a `lateinit val`: a value that can (and must) be set exactly once before it can be used but afterwards cannot be assigned again. Not sure if that is a brilliant or a stupid idea, so asking the community for judgment...