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 ES2015 Proxies #113

Open
phated opened this issue Sep 23, 2016 · 2 comments
Open

Use ES2015 Proxies #113

phated opened this issue Sep 23, 2016 · 2 comments
Milestone

Comments

@phated
Copy link
Member

phated commented Sep 23, 2016

I wanted to open this issue as a place to track things we could use Proxies to implement.

  • Currently, unsetting base to fallback to cwd requires setting base to null or undefined. With Proxies, I believe we could watch for delete file.base and unset it.
  • We could probably do some cool stat stuff with Proxies. Not sure what though.

More information about Proxies at https://github.com/mikaelbr/proxy-fun

@phated phated added this to the Future milestone Sep 23, 2016
@phated
Copy link
Member Author

phated commented Sep 27, 2016

In the docs, we currently tell people to treat history and it's properties as read-only. I think we could enforce this with proxies.

@darsain
Copy link
Contributor

darsain commented Sep 27, 2016

Yeah, that would be a great use for a proxy here.

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

No branches or pull requests

2 participants