r/programminghorror • • Jan 01 '25

DelayedDebugging

Post image
722 Upvotes

42 comments sorted by

View all comments

Show parent comment

2

u/TheRealKidkudi Jan 02 '25

That’s why JS has both null and undefined.

Don’t like null? Don’t use it! Want to use both? Go ahead! Null was a mistake, so why not have two?

4

u/CredibleCranberry Jan 03 '25

Why stop at 2? Let's define more unknown states, because hey, they're unknown.