3 ms·
How do you express the idea of null when the language doesn't have null and the runtime environment can diverge from its static model over a period of years or
by millstone 8y ago
How do you express the idea of null when the language doesn't have null and the runtime environment can diverge from its static model over a period of years or decades?
If your program typechecked against Netscape Navigator in 1997, does that prove that it will run without type errors in AwesomeNewBrowser 2023?
IMO null/undefined/etc are reasonable fallbacks if your runtime environment can radically diverge from its static model.
- fulafel 8y agoIf we pretend Elm existed in 97, I think things would have worked out ok in this respect.
- specialist 8y agoI favor Null Objects. It's a minority viewpoint. https://en.wikipedia.org/wiki/Null_object_pattern https://en.wikipedia.org/wiki/Null_object_pattern