r/Clojurescript • u/_woj_ • 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
View all comments
Show parent comment
1
u/_woj_ Dec 12 '17
Thanks. I guess I don't understand what a channel really is and what a go block does. Does a go block create a channel that you then put more channels into? What is this "pulling things in and out of a channel"? I don't understand why you need to put every request into a channel and how channels block until the response comes back. It just seems kind of unnecessary to have this channel abstraction over everything.