Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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?


You're overthinking this.

Semantics of 'null' are the same. Underlying implementation is different, better.


If 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.


Semantics != 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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: