-
Notifications
You must be signed in to change notification settings - Fork 35
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
null == null is false #152
Milestone
Comments
One more case: |
Just tested and the previous example is covered in #151. |
odino
referenced
this issue
Feb 1, 2019
``` myhash = {"some": "thing", "over": "the rainbow", "x": "y"} some, over = myhash echo(some) # "thing" ``` @ntwrick I had to revert one of your changes we introduced when adding error lines etc. When we evaluate null literals we always return a new object, and this means that when you compare `null == null` that is `false` as they're 2 different objects. For now I reverted that line you changed but maybe we could also think of adding a special case to handle `==` with nulls. Problem is, you'd have to add another special case for `!=` so I think it's probably easier to just reuse the same object for nulls...what do you think?
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
See #151
The text was updated successfully, but these errors were encountered: