The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.
No. Your posts have been inflammatory for so long it definitely was not meant humorously. Like W∴ Balboos, GHB, I shall not respond to any more responses in this thread either. But lies like yours are not funny.
Actually - === (and similar operators) exist in php as well.
It's because of the nature of the beast: both end up creating a lot of stuff for display in a browser so they, with very weak typing, will print the value 7 as the character 7 . Also allowed, but within limits, using such not-really-equal equals in conditionals. For what the languages do, it's really quite convenient. However - sometimes you want to maintain the intrinsic type for your comparison.
In it's way, isn't it a missing feature in many other languages? TRUE/FALSE and 0/not-0 are common in conditionals. What if, however, you really wanted 'FALSE' and not accept 0 (or even null at times)? For that matter, the default installation of SQL Server is case-insensitive for string matches and promotes between int and char types when it can.
Basically, a consequence of a trade-off between easier and more convenient most of the time and "gotcha!" .
Blessings and curses for such things depend upon what you need to do.
I respectfully disagree: imho, all spoken human languages have nothing in common with so called computer "programming" languages ... even if their semantics are to some degree modeled on human languages. I take off the table such weird experiments as Esperanto, and Daniel Everett's linguistic hypothesis that the Piraha language has no ambiguity [^], [^].
I do think you could "fudge" the Sapir-Whorf linguistic hypothesis [^] to partially apply to the way that programmers who reach a high level of mastery in one computer dialect may tend to view learning a new paradigm in terms of what they have internalized ... which may lead to cognitive dissonance / "culture shock" ... I'm thinking of the rants you sometimes see as OO devotees bounce off FP, and the reverse.
I believe it is a serious mistake to use any other term than "finite instruction set" for what are called today computer "programming" languages
«One day it will have to be officially admitted that what we have christened reality is an even greater illusion than the world of dreams.» Salvador Dali
modified 4-Sep-20 2:53am.
Last Visit: 25-Sep-20 23:07 Last Update: 25-Sep-20 23:07