Re: can clojure have es7 async await

2016-05-23 Thread Xiangtao Zhou
hi Andrey, I think, javascript basically designed with event mechnism, especially IO api. The async/await api is cps transform with promise. async makes the function return promise, await make cps transform. in clojure, these may associate with core.async, I mean use channel replace

Re: can clojure have es7 async await

2016-05-23 Thread Andrey Antukh
I'm not pretty sure if this answers your question, but I have similar async/await syntax already implemented in promesa library: http://funcool.github.io/promesa/latest/#async-await-syntax Regards. Andrey On Mon, May 23, 2016 at 4:07 PM, Xiangtao Zhou wrote: > hi Everyone, >

can clojure have es7 async await

2016-05-23 Thread Xiangtao Zhou
hi Everyone, es7 async/await makes javascript easily understandable, and avoid the callback hell. can clojure have one library like this? scala version is here https://github.com/scala/async. Thanks. Joe. -- You received this message because you are subscribed to the Google Groups