Re:Constantly Confusing ‘const’
by clessg on Tuesday September 08, 2015 @04:03PM
(#10187899)
Actually, I believe arrow functions keep the name of the binding.
Could be wrong.
[ Parent
| on HN ]
What you're thinking about in ES6 is called "function name inference" and only refers to certain forms, like this one, where the name -- PURELY FOR DEBUGGING -- can be inferred. Actually, it goes for all assignments, `var`, `let`, and `const`.
Otherwise, the arrow itself is anonymous and thus you don't have a name to make an inner self-reference with.