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

Add getPath, setPath, mapPath and so on #56

Open
5outh opened this issue Feb 16, 2015 · 0 comments
Open

Add getPath, setPath, mapPath and so on #56

5outh opened this issue Feb 16, 2015 · 0 comments

Comments

@5outh
Copy link
Owner

5outh commented Feb 16, 2015

This will be a major change but it should be really easy. I want to make it so that:

nanoscope(obj).path('a.b.c').get();

is the same as:

nanoscope(obj).getPath('a.b.c');

just for conciseness. Writing the former gets a little noisy and I'd like to avoid noise whenever possible. Another option would be something like:

nanoscope(obj).get.path('a.b.c');

but I think this would require too much unsafe finagling of already existing functions, plus I think it's less pretty. The first will be kind of brute-force but safer and easier. I want this done for not only path, but all of the primitive lenses.

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

No branches or pull requests

1 participant