News for hackers. Stuff that matters.
Re:Bad TypeScript Habits by Normal_gaussian on Tuesday February 02, 2021 @06:12PM (#26008355)
Welcome to any of my codebases. Undefined and null have clear semantic differences, and those differences are important to the function, safety, and performance of the code.
Re:Bad TypeScript Habits by patrickthebold on Tuesday February 02, 2021 @07:19PM (#26009003)
Curious: Roughly, how many people work on those code bases?
Re:Bad TypeScript Habits by recursive on Tuesday February 02, 2021 @08:15PM (#26009427)
That's perfectly fine. If you need to distinguish between them, then you should do that. There's plenty of code that's different though. I would say probably most of it.

The semantic differences seem to be local at best. In any case, there's plenty of code that legitimately doesn't concern itself with any of that.