Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
kinkdr
on Nov 2, 2016
|
parent
|
context
|
favorite
| on:
Async/await support in Firefox
Care to elaborate a bit? Just trying to understand why async/await is bad. In my mind it makes for much cleaner code that the callback hell.
Also, how is Scala doing it?
pkolaczk
on Nov 2, 2016
[–]
Scala is doing it exactly as in JS. We have async/await as a macro library transforming the code to a FSM. The original author posting this probably didn't know that, under-the-hood, await doesn't really block in Scala nor in JS.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
Also, how is Scala doing it?