-
Notifications
You must be signed in to change notification settings - Fork 2
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
Allow explicit this parameter without renaming #4
Conversation
} | ||
``` | ||
|
||
Its primary use case is to play nicely with the [function bind proposal](https://github.com/zenparsing/es-function-bind), making such functions more readable. For example: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Its primary use case is to play nicely with the [function bind proposal](https://github.com/zenparsing/es-function-bind), making such functions more readable. For example: | |
The original motivation of this proposal was to play nicely with the [function bind proposal](https://github.com/zenparsing/es-function-bind), making such functions more readable. For example: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Because I'm planning revive ::
notation and plan to present to committee on 2020 Feb meeting, I would like to keep the sentence. What do you think?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can keep the original, but you should also write about its newer applications. Here are a couple off the top of my head:
- Less transpiling required (TypeScript supports this syntax and it makes sense)
- Now that arrow functions are ubiquitous, a linter could require a named
this
for function declarations.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure I understand the second point.
Co-Authored-By: Gilbert <[email protected]>
Looks great, thank you! |
Closes #3