logoalt Hacker News

ClojureScript Gets Async/Await

87 pointsby Borkdudetoday at 7:04 AM22 commentsview on HN

Comments

midnight_eclairtoday 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!

show 1 reply
timwistoday 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?

show 4 replies
boczeztoday 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!

nbardytoday 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

show 2 replies
slifintoday 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 :-)

rockyjtoday at 9:38 AM

Nice! Now also get rid of the elephant in the room - "Google Closure Compiler" and then we can really celebrate.

show 1 reply
zerrtoday at 8:11 AM

For the moment thought the article was about CoffeeScript... But it already supports async/await :)

show 1 reply