4 ms·
JS without callbacks... so JS without the best part of JS?
by LordHumungous 13y ago
JS without callbacks... so JS without the best part of JS?
- rzimmerman 13y agoIt's admittedly a bit link-baity. The async structures in Kal do compile to callbacks in JS.
- ufo 13y agoDont confuse closures with callbacks. Asynchronous non blocking code is the nice thing and callbacks are the price you have to pay to use that in JS,
- gnaritas 13y agoHow exactly are callbacks the best part of JS? Callback aren't a language feature, they're a pattern of doing async code with anonymous functions. Anonymous functions are used for far more than just async code and cannot be replaced with an await keyword which only replaces the need to use callback for async code.