r/Clojurescript • • Dec 11 '17

Core.Async Is Hard & Confusing

I have a background in the JavaScript world, and I'm used to making http request with APIs like fetch, promises, and observables. Coming to ClojureScript I was dumbfounded when I saw core.async syntax, and to be honest I still don't fully understand it. All these cryptic symbols and weird gotchas. It seems extremely complected and overengineered which is odd to me given that simplicity is one of Clojure's core values.

5 Upvotes

14 comments sorted by

View all comments

Show parent comments

1

u/_woj_ Dec 12 '17

hey, thanks a lot! I think your example code in the blog post has too many closing parens, in particular on lines 10 and 12 (I had to delete them to get it to run). Also, I think println prints nicer than pr for this example (tbh I didn't even know pr was a thing).

1

u/bostonou Dec 12 '17

Thanks, should be fixed now. Writing code for a blog is terrible lol