Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign upRequest: Shortcut for declaring an ES6 fat arrow function that doesn't take parameters. #1265
Comments
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
Show comment
Hide comment
devsnek
Jul 14, 2018
Contributor
seems more confusing than useful. adding too much syntax has a strain on people writing the language.
|
seems more confusing than useful. adding too much syntax has a strain on people writing the language. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
Show comment
Hide comment
ljharb
Jul 14, 2018
Member
Please see Contributing to ECMAScript for the most up-to-date information on contributing proposals to this standard.
|
Please see Contributing to ECMAScript for the most up-to-date information on contributing proposals to this standard. |
ljharb
closed this
Jul 14, 2018
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
ozzie1998 commentedJul 14, 2018
Declaring an ES6 Fat arrow function is like so:
It would be handy to be able to declare an ES6 Fat Arrow Function that doesn't take any parameters like so:
The main problem with this would be that this isn't immediately obvious as a function.
Advantages of a shorter Fat Arrow function declaration for a function that doesn't take any arguments: