3 ms·
Kinda makes me think that implementation is probably not very performant or optimized for the obvious case. A big pet peeve of mine is when languages do weird a
by gleenn 2y ago
Kinda makes me think that implementation is probably not very performant or optimized for the obvious case. A big pet peeve of mine is when languages do weird and very unintuitive things with equality. Like in Javascript and PHP you end up needing these crazy charts to determine if something == something else. Personally I think Clojure gets this really well and has some of the fewest surprises.
- csjh 2y agoNo need to remember crazy charts to determine equality in Javascript, just blanketly use `===`
- RodgerTheGreat 2y agoJavaScript == comparison isn't particularly strange; the "crazy charts" are mostly cases that you should never encounter if you're writing reasonable code. If you're going to use a language, it's a much better idea to familiarize yourself with its actual semantics than to pepper your codebase with superstitious rituals.