Join Slack
Communities
Powered by
At the expense of sounding completely ignorant, wh...
# language-proposals
p
poohbar
05/05/2017, 1:26 PM
At the expense of sounding completely ignorant, why is not implicitly initializing the nullable properties a
good
thing?
👍 2
b
benleggiero
05/05/2017, 2:48 PM
It's consistent; all declared fields in Kotlin must be explicitly given a value before they can be accessed. Creating exceptions reduces clarity
p
poohbar
05/05/2017, 2:50 PM
Kotlin has no fields.
poohbar
05/05/2017, 2:51 PM
only properties and backing fields
b
benleggiero
05/05/2017, 3:02 PM
You know what I mean. "Value-holders": `var`s add `val`s that aren't delegated or dynamic `get()`ers
benleggiero
05/05/2017, 3:02 PM
Heck, even delegated ones need the delegate right away
3
Views
Open in Slack
Previous
Next