News for hackers. Stuff that matters.
Re:JavaScript's world domination by jsprogrammer on Tuesday March 24, 2015 @09:46PM (#9260799)
You can do that with current ES transpilers:

    async read(connect, readMessage, print) {
        const sock = await connect('localhost', 7942),
              msg = await readMessage(sock);
        print(msg);
    }
Re:JavaScript's world domination by omphalos on Wednesday March 25, 2015 @04:34AM (#9261788)
You can do it now without a transpiler if you set harmony flags in Chrome/Node and use yield+co. (And just use a transpiler for deployment.)