4 ms·
Explicit nullability is one of my favorite features of kotlin. Kotlin basically treats nulls like a checked exception: deal with a null value immediately or inc
by zwkrt 4y ago
Explicit nullability is one of my favorite features of kotlin. Kotlin basically treats nulls like a checked exception: deal with a null value immediately or incur the mental overhead of having your data treated like a 2nd-class citizen in all the code it touches.
- madeofpalk 4y agoIt baffles me that golang does not have this, which is otherwise a relatively modern language.
- adastra22 4y agoThere's a lot of stuff golang doesn't have :(
- sam_lowry_ 4y ago...to go faster.
- talideon 4y agoIf Go were a modern language, it would've had algebraic data types and pattern matching since the beginning, and its handling of errors and enumerations wouldn't be quite so embarrassingly bad.
- 3836293648 4y agoGo is not a modern language. It's an 80s language that happened to be made in the 2010s
- deleted 4y ago[deleted]
- pjmlp 4y agoGo is Limbo repacked in new clothes with Oberon-2 method syntax and unsafe package, hardly modern. Even Limbo had better support for plugins.
- rawling 4y agoHaving briefly dabbled in Kotkin before returning to C#, this is one thing I really miss. C# has added non-null reference types but there's a number of places I really wish it acted differently.