top | item 43307346

(no title)

chris_overseas | 11 months ago

Not entirely true - e.g. Kotlin has null safety built into its type system, and I find it much nicer than the option/optional approaches used in various other languages.

https://kotlinlang.org/docs/null-safety.html

discuss

order

josephg|11 months ago

Looks similar to the syntax in Swift. I agree - it’s much nicer than all the mucking around you need to do in rust.

It’ll never happen, but I wish rust added this kind of sugar on top of Option.