-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The equality operator (==) behaves like JavaScript. Should we require a ===? #7
Comments
Just checked the source—I believe |
Testing for direct equality in equivalent statements would never be perfect and we shouldn't strive for it in such a diverse framework of expression. Instead we should use the approximate operator
That way we can reserve the equal operator for direct repetitions:
|
Yes @mtekman this and what @theletterf said regarding the piping operator. (I think he's referring to R's Pipe Operator) So it'll be: "Named must your fear be, before banish it you can." ~ "You must name your fear before banishing it." // true |
@srbhr I'm not sure that's the case, as the
The pipes were a much needed struct for category placement during the BBS messaging crisis of 1980s, but I think was later deprecated due to misuse in the following decades. |
Okay, so this is getting really interesting.
|
That should throw a syntax error, or at least result in something sharp being thrown, but truthfully I haven't updated my fork of the language since v1997 so it could be a completely valid statement in the dev branch. |
Indeed, it might be compiling in one of the localized forks. I have the v2021 build. But it contains words that compile to zero meaning. |
Facing a challenging situation here. There are two statements:
Another such example
So, while we're using two different statements, they're equal. While being differently written. So, should there be a
===
check when talking about checks like this? This might lead to different interpretations in certain cases. 🤔🤔 (Especially comparing between forks.)The text was updated successfully, but these errors were encountered: