max-mapper / callback-hell

information about async javascript programming
http://callbackhell.com
847 stars 100 forks source link

Added warning about hoisting when naming functions #19

Closed togakangaroo closed 10 years ago

max-mapper commented 10 years ago

thanks for the contribution, but IMO this is off-topic. the point made here could also be extended to many parts of JS, e.g. function declarations vs named function expressions -- they both define variables in the same scope + any case where you define two variables in the same scope will mean that the second one will override the first

togakangaroo commented 10 years ago

That's true but the specific advice given here (presumably to beginners) could easily cause bugs, and very very difficult to track down bugs at that.