I'm assuming they are similar to Option in Scala and Optional in Java? If so, they are amazing.
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.
var foo: Int = 0
We’re a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.