Hacker News new | ask | show | jobs
by chris_overseas 462 days 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

1 comments

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.