3 ms·
> Similarly, when you fully grok functional programming, coding with callbacks will cease to feel unnatural. I don't understand this comment. Javascript, while
by wickedchicken 15y ago
> Similarly, when you fully grok functional programming, coding with callbacks will cease to feel unnatural.
I don't understand this comment. Javascript, while having first-class functions, does not have call/cc. This is the source of complaints that Javascript encourages callback-spaghetti. As people have mentioned elsewhere, continuation-passing style is meant for compilers, not humans.
- hasenj 15y agoThanks! I couldn't have phrased it any better. This is why I said it's like writing assembly.