2 ms·
> !== Why so many characters for inequality.
by xxs 3y ago
> !==
Why so many characters for inequality.
- Am4TIfIsER0ppos 3y agoThey must be a user of a language that needs === meaning "real equal not imaginary equal" Also I wish you could still buy cars that were not computers.
- thaumasiotes 3y ago> They must be a user of a language that needs === meaning "real equal not imaginary equal" This is something that, weirdly enough, perl did really well and then everyone else ignored the good solution in favor of much worse alternatives. In perl, 0 and "0" will compare equal, which can lead to trouble. But perl prevented virtually all of that trouble by making the operators on strings different than the operators on numbers. So "1" + 2 is 3, whereas "1" . 2 is 12.
- dylan604 3y ago. vs + for string concat is still one that causes many basic syntax errors for me as I switch back and forth between PHP and JS. I know immediately what I've done as soon as the corresponding syntax error is thrown, but still not immediate enough for when I'm actually typing it.
- xxs 3y ago>Also I wish you could still buy cars that were not computers. That was the joke
- dylan604 3y agohttps://duckduckgo.com/?q=!%3D%3D&t=h_&ia=web https://duckduckgo.com/?q=!%3D%3D&t=h_&ia=web