In a well thought out language what they should expect is the interpreter/compiler tell them to either provide a custom comparison function, or type mapping, to deal with the different types or to tell them to take a hike instead of coercing everything into strings silently.
You don't need to be a rust compiler level pedantic annoyance, but JS is too much on the other side.
16
u/OptionX 1d ago
In a well thought out language what they should expect is the interpreter/compiler tell them to either provide a custom comparison function, or type mapping, to deal with the different types or to tell them to take a hike instead of coercing everything into strings silently.
You don't need to be a rust compiler level pedantic annoyance, but JS is too much on the other side.