ClojureScript Gets Async/Await
clojurescript.org
ClojureScript Gets Async/Await
1–10 of 76 posts
Re: ClojureScript Gets Async/Await
#2edit: 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!
Re: ClojureScript Gets Async/Await
#3Re: ClojureScript Gets Async/Await
#4fun 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!
It balloons up the Js artifact, has no inherent error model, and transforms into state machine code that's hard to read/debug if something goes wrong. Plus, the `go` macro encourages overly-large functions, because it can't transform code outside its own sexpr.
As one Cognitect put it, "core.async is beautiful nonsense".
Re: ClojureScript Gets Async/Await
#5fun 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!
True, but there are many reasons to avoid core.async, especially in 2026. It balloons up the Js artifact, has no inherent error model, and transforms into state machine code that's hard to read/debug if something goes wrong. Plus, the `go` macro encourages overly-large functions, because it can't transform code outside its own sexpr. As one Cognitect put it, "core.async is beautiful nonsense".
Re: ClojureScript Gets Async/Await
#6Re: ClojureScript Gets Async/Await
#7Re: ClojureScript Gets Async/Await
#8Seems like wrapping async await functions with CSP was a better way to handle this . Clojure already had a nicer pattern for this
core.async isn't going anywhere, if async/await works better than promise based implementation, core.async will get an update in it's .cljs parts
Re: ClojureScript Gets Async/Await
#9I 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?
Re: ClojureScript Gets Async/Await
#10I 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?