Comment

Comment by andai

Shouldn't an operator on incompatible types return undefined? ;)

Equality on things that it doesn't make sense to compare returning false seems wrong to me. That operation isn't defined to begin with.

By shipping with undefined, JavaScript could have been there only language whose type system makes sense... alas!

parent andai 1 year ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton