r/javascript • • Jul 10 '16

The JavaScript language reboot is done

https://medium.com/@velmu/the-javascript-language-reboot-is-done-7bcec4be2cb6#.dy2fyy9j1
41 Upvotes

98 comments sorted by

View all comments

29

u/[deleted] Jul 10 '16

Callbacks obsolete? Seems premature to say so.

10

u/ihsw Jul 10 '16

I think it is.

Callback hell is over, promises and async/await have won.

I challenge you to find any new ES6/TypeScript projects that still use anonymous functions for asynchronous execution.

11

u/gurenkagurenda Jul 10 '16

There are cases where callbacks still make sense though, like event handling.

6

u/Sinistralis Jul 11 '16

Sounds like we need a library to fix this travesty

1

u/gurenkagurenda Jul 11 '16

I think you're joking, but honestly I really do think event handling could use a better abstraction, the same way promises did for procedural async. I don't really know what it would look like though. Something something streams, something something generators.