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
object destructuring #47
Labels
enhancement
New feature or request
Milestone
Comments
odino
added a commit
that referenced
this issue
Jan 31, 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?
odino
added a commit
that referenced
this issue
Jan 31, 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?
odino
added a commit
that referenced
this issue
Feb 2, 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?
odino
added a commit
that referenced
this issue
Feb 2, 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
No description provided.
The text was updated successfully, but these errors were encountered: