2 ms·
> arrow "keyword" a very sensitive choice I think you meant 'sensible' there. I actually find the cs arrows a lot more useful than the es6 short-hand function
by AdrianRossouw 13y ago
> arrow "keyword" a very sensitive choice
I think you meant 'sensible' there.
I actually find the cs arrows a lot more useful than the es6
short-hand function definition, because a lot of the time I want
to do be able to do composition, and the es6 one always binds the
scope to where it's defined.
I love named functions otherwise, which ease debugging and understandability.
I actually don't care for implicit returns, not just because i
prefer being explicit, but because it's the cause of some very weird bugs at times.
- gadr90 13y agoThanks! Updated. Didn't know that about the new ES6 functions. I'll check it out. Yes, named functions do improve debugging... But I guess it's worth the trade. I have come across very confusing code thanks to named functions.