News for hackers. Stuff that matters.
Re:Intent to stop using 'null' in my JS code by lmm on Sunday November 01, 2020 @02:11AM (#24957729)
Because they mean very different things. E.g. "no-one owns this land" is very different from "I don't know who owns this land". "You don't need to do anything" is very different from "I don't know what you need to do". "No-one's in that room" is very different from "I don't know who's in that room". Of course the practical difference depends on context, but so does the practical difference between 2 and 3.
Re:Intent to stop using 'null' in my JS code by amw-zero on Sunday November 01, 2020 @08:03AM (#24959195)
That’s not what I asked. I know what the distinction is. I asked why would I ever need that distinction in a program.

In 10 years I’ve never come across a situation where I found that distinction useful.

Re:Intent to stop using 'null' in my JS code by thenanyu on Sunday November 01, 2020 @12:10PM (#24960858)
Agree. I would never attempt to write flow control that had different cases for handling undefined and null. It feels so extremely brittle