3 ms·
Everybody should read part 2 of this post[1]. That's where all the interesting things are! I wish they had either not separated out the interesting bits into a
by tikhonj 14y ago
Everybody should read part 2 of this post[1]. That's where all the interesting things are! I wish they had either not separated out the interesting bits into a different article or that part 2 was the article on HN.
[1]: https://blog.stackmob.com/2013/01/free-yourself-from-the-tyranny-of-null-part-2-why-weve-banned-null-in-our-codebase/ https://blog.stackmob.com/2013/01/free-yourself-from-the-tyr...
Essentially, part 2 shows how you can very easily overcome the issues with the approach in part I using some nice Scala features. You can get elegant code without sacrificing the more expressive types.