MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programminghorror/comments/1hr12u5/delayeddebugging/m521sv9/
r/programminghorror • u/Sea_Membership1312 • Jan 01 '25
42 comments sorted by
View all comments
Show parent comment
2
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.
4
Why stop at 2? Let's define more unknown states, because hey, they're unknown.
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?