Yup! Exactly that, but they're supported at the language level and every variable is, by default, not optional.
So if I write var foo: Int = 0, I can be sure that foo will never be nil, because if I write code that even places foo at risk of being nil, my program won't compile! Pretty awesome stuff.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Yup! Exactly that, but they're supported at the language level and every variable is, by default, not optional.
So if I write
var foo: Int = 0
, I can be sure thatfoo
will never be nil, because if I write code that even placesfoo
at risk of being nil, my program won't compile! Pretty awesome stuff.