Re:“var functionName” vs “function functionName”
by icebraining on Wednesday April 30, 2014 @08:06AM
(#7672734)
Why not do the reverse, and declare the inner functions before?
[ Parent
| on HN ]
Re:“var functionName” vs “function functionName”
by AdrianRossouw on Wednesday April 30, 2014 @09:20AM
(#7673051)
coffeescript forces you to do that, and I do use it that way sometimes in CS.
I don't do it as much as i would with plain js, because the function definition feels less awkward, but I do still prefer named functions over anonymous ones. even if the name only exists in the local scope.