re: ES6 Arrow Functions Cheatsheet VIEW POST

VIEW PARENT COMMENT VIEW FULL DISCUSSION
 

I personally feel in large projects we need to enforce the use of body braces and explicit returns, as that is the only syntax that will work consistently, regardless of the changes made to the function(adding a parameter, changing the return type, adding 1 more line).

I'm curious about your reasoning here and if you have any examples that could clear things up for me.

I don't see the syntax as being retired to project size.

Changing either the input or output of a function should be the same in both situations.

code of conduct - report abuse