ClojureScript Gets Async/Await

85 points - today at 7:04 AM

Source

Comments

midnight_eclair today at 8:08 AM
fun fact: clojurescript had support for asynchronous paradigm through core.async library (CSP style) long before async/await landed in javascript itself.

edit: i'm in no way trying to diminish the value of this release, just pointing out how cool it is that you can get new language features before they are available in the host language by just adding a library to your dependencies. clojure is awesome!

timwis today at 9:05 AM
I wish an alternative to JS for the front end would catch on and be something more than obscure... I'd love to use something like clojurescript, but I struggle to imagine doing so for anything but a personal side project :/ Maybe this is easier to adopt if you're already a clojure shop for the backend?
boczez today at 9:49 AM
Massive, cheers dude and congrats on the release. I’d say it’s such a good time to get into Clojure/Script but, well … it has been for a while!
nbardy today at 9:09 AM
Seems like wrapping async await functions with CSP was a better way to handle this . Clojure already had a nicer pattern for this
slifin today at 9:40 AM
This is important for JavaScript interop without having to include additional libraries very cool and was missing for a long time

Congratulations on the release :-)

rockyj today at 9:38 AM
Nice! Now also get rid of the elephant in the room - "Google Closure Compiler" and then we can really celebrate.
zerr today at 8:11 AM
For the moment thought the article was about CoffeeScript... But it already supports async/await :)