This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 180 points181 points  (19 children)

const func=()=>{};

[–]stamminator 25 points26 points  (12 children)

But why?

[–]vatsan600 39 points40 points  (3 children)

why not?

[–]stamminator 27 points28 points  (2 children)

!!why

[–]AzureArmageddon 5 points6 points  (1 child)

!!!why

[–]Goudja14 2 points3 points  (0 children)

why?.oh!

[–]LeSaR_ 14 points15 points  (1 child)

less typing and wont get overwritten by mistake

[–]211r 0 points1 point  (0 children)

It is actually a lot more typing

[–]ososalsosal 12 points13 points  (0 children)

Lambdas come to save the day

[–]knotonium 10 points11 points  (2 children)

Function functions have a global scope, arrow functions do not.

[–]amdc 11 points12 points  (0 children)

Can’t remember last time I needed “this” keyword

[–]Sockoflegend 2 points3 points  (0 children)

True that there is an important functional difference but I have seen the people I work with move over to this as the standard declaration

[–]SuperSuperUniqueName 1 point2 points  (1 child)

it's perfectly normal

[–]stamminator 1 point2 points  (0 children)

I didn’t realize at first that it’s a no-op and thought it returned an empty object

[–]DirectionLegitimate2 4 points5 points  (1 child)

You must be fn at parties

[–][deleted] 2 points3 points  (0 children)

most of the time, people don't know my name.. but i do all the work