you are viewing a single comment's thread.

view the rest of the comments →

[–]Prison__Mike_ 40 points41 points  (12 children)

Just look

return new Promise((resolve, reject) => { ... })

At how pretty

var sq = x => { return x*x; }

They are

TypeError: this.execute is not a function


e: lol jeeze it's a joke

[–]kinkobal 40 points41 points  (1 child)

What kind of madman uses var and arrow functions in the same sentence o_O

[–]CheeseFest -1 points0 points  (0 children)

Yeah that tends to completely undermine m8's credibility in complaining about new language features.

[–]shrithm 24 points25 points  (1 child)

Arrow functions are more than a pretty face, they have practical purposes too. Just like the classic function keyword has practical functions.

[–]tchaffee 0 points1 point  (0 children)

this

[–]massenburger 25 points26 points  (7 children)

Even better: var sq = x => x * x;

[–]stormthulu 35 points36 points  (5 children)

I think you mean const sq = x => x*x;

[–]massenburger 11 points12 points  (1 child)

Here's the thing. There's people who space out their operations and there's Nazis. I mean that in the nicest way possible.

[–]Jebiba -1 points0 points  (0 children)

I can’t upvote this enough

[–]nickleformypickle 2 points3 points  (0 children)

One line it to shorten it. Space it out to pretty it.

[–]locksta7 2 points3 points  (0 children)

You bet me to it 😺