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

Better "dot" notation sugar for mutating properties #1

Open
tjb1982 opened this issue Jun 25, 2016 · 0 comments
Open

Better "dot" notation sugar for mutating properties #1

tjb1982 opened this issue Jun 25, 2016 · 0 comments

Comments

@tjb1982
Copy link
Owner

tjb1982 commented Jun 25, 2016

Currently in an environment document, you can mutate maps such as

foo:
  bar:
    baz: lala
  quux:
  - first
  - second
  - third: true

like this:

foo.bar.baz: something which is not "lala"
foo.quux.2.third: false

Which is great, but in order to append to collections, it gets awkward:

foo.bar:
  ~(assoc:
  - [email protected]
  - ~:extra
  - blah

foo.quux:
  ~(conj:
  - [email protected]
  - fourth

It would be nice if there were a shortcut, like this:

foo.bar.:
  extra: blah
foo.quux.: fourth

or even:

foo.:
  bar.:
    extra: blah
  quux.: fourth
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant