ecma262
ecma262 copied to clipboard
Request: Shortcut for declaring an ES6 fat arrow function that doesn't take parameters.
Declaring an ES6 Fat arrow function is like so:
let example = () => {/*Blah*/}
It would be handy to be able to declare an ES6 Fat Arrow Function that doesn't take any parameters like so:
let example => {/*blah*/}
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:
- Less to type
- Makes writing callbacks easier
seems more confusing than useful. adding too much syntax has a strain on people writing the language.
Please see Contributing to ECMAScript for the most up-to-date information on contributing proposals to this standard.