Yeah, despite working with arrow functions for nearly a year, I still find them infinitely more difficult to understand and comprehend than the non-arrow version. The syntax is just so poor.
Alright, I really hate to be that asshole on the internet, but if you are working with them for a year, and can't figure it out, programming might not be for you.
let that = this;
function (a) {
return a + that.b;
}
I've been a programmer for 20 years. I have no problem figuring them out. It's just the syntax I have a problem with. And by problem I don't mean I don't understand it, I mean the syntax was poorly thought out and all around sucks. And yes, I know that the syntax was borrowed from other languages, but that doesn't mean the syntax didn't suck in those other languages too.
3
u/lucidguppy Jul 10 '16
I'm afraid that the cycle will start again - and things will be reinvented.
Has anything really become simpler?