clojurescript

ClojureScript, a dialect of Clojure that compiles to JavaScript http://clojurescript.org | Currently at 1.10.879
2020-12-29T18:36:46.002600Z

how are people handling unwrapping values from promises a la async/await when it comes to doing interop w vanilla js?

๐Ÿ‘€ 1
oxalorg (Mitesh) 2020-12-30T11:12:36.014200Z

There;s also kitchen-async https://github.com/athos/kitchen-async

p-himik 2020-12-29T19:46:58.004700Z

By just calling (.then promise on-resolve). Or using some wrapper library, like promesa.

โž• 1
lilactown 2020-12-29T19:47:59.006700Z

I typically just chain .then, but have on one or two occasions used https://github.com/athos/kitchen-async

valtteri 2020-12-29T19:48:48.008100Z

They are callbacks.. no matter how hard you try to hide them ๐Ÿ™‚. Personally I prefer using vanilla promises. Promesa lib has a macro that looks like async/await.

valtteri 2020-12-29T19:53:12.010100Z

The macro is named โ€˜pletโ€™ if you want to look it up

valtteri 2020-12-29T19:54:23.011500Z

Itโ€™s kinda cool but I think Iโ€™ve never used it in a serious project