News for hackers. Stuff that matters.
Re:How to manage HTML DOM with vanilla JavaScript only? by minitech on Friday April 03, 2020 @12:06AM (#22766244)
> No, not exactly. It looks like I need to be more explicit, here goes: Remember, an arrow function's BODY shares the same scope with its parent function

Exactly like a non-arrow function, then?

I don’t mind if you don’t have the energy to support your claim, but I will recommend that you don’t make claims like “arrow functions are slower” if you can’t back them up properly or even provide any detail.

I also get the impression that you don’t know how arrow functions actually differ from non-arrow functions (see above), so your anecdote that you couldn’t figure out the bug doesn’t make a strong case.

> Do you have any evidence that you do not use it?

My browser was crashing for no apparent reason and stopping voting on HN solved it.

There are no comments on this comment yet.