Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Callbacks as our Generation's Goto Statement.
Await should not be required - it should be more like...
--
regularWork(); //im waiting till this thing is done
driveHome();// not executed till thing one is done
background orderStatus = orderPizza();
turnOnXbox();
while(orderStatus == 'not ready') {
playXbox();
}
turnOffXbox();
eat();
Like I said - just my humble opinion that the code written would become more expressive.
There are no comments on this comment yet.
Await should not be required - it should be more like...
--
regularWork(); //im waiting till this thing is done
driveHome();// not executed till thing one is done
background orderStatus = orderPizza();
turnOnXbox();
while(orderStatus == 'not ready') {
playXbox();
}
turnOffXbox();
eat();
--
Like I said - just my humble opinion that the code written would become more expressive.