6 ms·
Exploiting the type system to handle nulls is attractive (when that sort of thing is not “native” to the type system) but boy that’s verbose.
by mwsherman 11y ago
Exploiting the type system to handle nulls is attractive (when that sort of thing is not “native” to the type system) but boy that’s verbose.
- danappelxx 11y agoI agree. Perhaps it makes the code look cleaner on the outside, but ultimately it makes it harder to maintain. Also, optionals have loads of features (ex: chaining) to make your code much cleaner, though the author doesn't go into that. It's a neat idea but I don't think it's as good as optionals.