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

Allow explicit this parameter without renaming #4

Merged
merged 2 commits into from
Jan 10, 2020

Conversation

hax
Copy link
Contributor

@hax hax commented Nov 23, 2019

Closes #3

README.md Outdated Show resolved Hide resolved
}
```

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:
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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:

Copy link
Contributor Author

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?

Copy link
Owner

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.

Copy link
Contributor Author

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 <gilbertbgarza@gmail.com>
@gilbert
Copy link
Owner

gilbert commented Jan 10, 2020

Looks great, thank you!

@gilbert gilbert merged commit bbb5808 into gilbert:master Jan 10, 2020
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

Successfully merging this pull request may close these issues.

Allow this inside the body if no explicit name provided
2 participants