-
Notifications
You must be signed in to change notification settings - Fork 2k
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
(a is not b) results in (a == !b) #3201
Comments
In CofeeScript, # These are all equivalent.
a == !b
a == not b
a is !b
a is not b |
Oh ok. I am from python background where, "is not" means != Isn't the literal meaning ambiguous in the case of coffee script? We can always have On 13 Oct 2013 14:16, "Demian Ferreiro" notifications@github.com wrote:
|
I agree @shyamdsundar. It's confusing and misleading. |
We have the |
I assumed that |
#814 (comment), #2419 and : #1551 |
Just use |
isnt vs. is not is not clear haha. gave me trouble and lead to this thread. |
It makes some sense ~ comparisons are just broken in JavaScript and CoffeeScript only sugars them ~ but the inconsistency between
Ideally, |
Definitely a tricky one. I encountered a hard to find bug because of this. On Fri, Sep 5, 2014 at 5:07 PM, Carl Smith notifications@github.com wrote:
|
@rlidwka Haha, great comment =D |
Maybe |
Actually, it used to be. |
Wow, I had no idea. That sure was some time ago.
|
Yep. Also, it's mentioned in the release notes for |
(a is not b) should actually be (a != b)
The text was updated successfully, but these errors were encountered: