4 ms·
Can you explain why it is good that null is a valid value for your types at the same time as you are trying to prevent them from ever containing that value?
by anonymoushn 3y ago
Can you explain why it is good that null is a valid value for your types at the same time as you are trying to prevent them from ever containing that value?
- specialist 3y agoYou're overthinking this. Semantics of 'null' are the same. Underlying implementation is different, better.
- anonymoushn 3y agoIf the semantics were the same, you wouldn't need a replacement and all your proposed changes would have no observable effect on the behavior of any program.
- specialist 3y agoSemantics != behavior. In truth, I'm having hard time deciding if you're trolling or actually truly, sincerely not understanding this. Read the wiki page. Implement a few Null Objects. If you still have questions, about this trivial concept, then I'll be happy to go a few more rounds.