News for hackers. Stuff that matters.
Re:Intent to stop using 'null' in my JS code by Spivak on Sunday November 01, 2020 @08:55AM (#24959510)
And the magic sauce that makes Option nice to use is the type checker that can force you to handle the None case.

I would go even further that even if the semantics are a little clunky (wrap/unwrap) any programming language can implement Option.

Re:Intent to stop using 'null' in my JS code by jolux on Sunday November 01, 2020 @09:43AM (#24959759)
True but you can’t restrict the type if your language is dynamic.