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

Rename optionalChaining to Object.get and introduce Object.set #99

Open
medikoo opened this issue Jun 3, 2020 · 0 comments
Open

Rename optionalChaining to Object.get and introduce Object.set #99

medikoo opened this issue Jun 3, 2020 · 0 comments

Comments

@medikoo
Copy link
Owner

medikoo commented Jun 3, 2020

Reasoning:

  • Object.get is simpler and better name
  • Current implementation cover purely properties resolution, while real ECMAScript optional chaining is also about possible function invocations
  • It'll be close to lodash's _.get, therefore easier to migrate for users that rely on lodash
  • Having that we can introduce an Object.set, a conditional resolver that will create eventual objects on the way.

To be introduced in ext@1

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