3 ms·
Do you like writing this everywhere? var that = this; function() { ... } Back when there was no async/await and no promises, passing callbac
by zarzavat 4y ago
Do you like writing this everywhere?
var that = this;
function() {
...
}
Back when there was no async/await and no promises, passing callbacks like this was extremely tedious, and node.js had a lot. CoffeeScript was worth using for the fat arrows alone.
CoffeeScript didn't die. JavaScript (ES3/5) died and we are all using CoffeeScript now!
- winrid 4y agoOh God, that = this made my heart jump a little. Is this what it's like to feel old? :)
- polyamid23 4y agowas function() { .. }.bind(this) not around yet?