Skip to content
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

Use := to insert in objects #5

Closed
bvssvni opened this issue Jan 23, 2016 · 2 comments
Closed

Use := to insert in objects #5

bvssvni opened this issue Jan 23, 2016 · 2 comments
Assignees
Labels

Comments

@bvssvni
Copy link
Member

bvssvni commented Jan 23, 2016

This will insert a key in an object if it is not there, or overwrite if it exists.

@bvssvni bvssvni added the draft label Jan 23, 2016
@bvssvni bvssvni self-assigned this Jan 27, 2016
@bvssvni
Copy link
Member Author

bvssvni commented Jan 30, 2016

The following should not insert for every property, only the last one:

a.x.y.z := 0

Inserting for every property can lead to confusion.

@bvssvni
Copy link
Member Author

bvssvni commented Jan 30, 2016

Could insert Variable::Return under item lookup, which will be overwritten with the right value.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant