News for hackers. Stuff that matters.
Re:Callbacks as our Generation's Goto Statement by swiil on Saturday August 17, 2013 @02:54PM (#6229928)
I actually believe that code should be synchronous unless instructed to operate asynchronously - just my .02

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.