News for hackers. Stuff that matters.
Re:Learn ClojureScript: Discovering Sequence Operations by cutler on Saturday October 19, 2019 @05:37PM (#21300924)
Your example is only calling Javascript directly. I think the OP meant that Clojurescript has not adapted to promises/async with its own (improved) version. You simply have core.async which predates ES6 and so does not take advantage of the new async/yield features of ES6. It's about implementation and I agree with him that Clojurescript does not seem to be interested in adapting to the current JS standard.
Re:Learn ClojureScript: Discovering Sequence Operations by capableweb on Saturday October 19, 2019 @06:20PM (#21301102)
> Clojurescript has not adapted to promises/async with its own (improved) version

In general, that's not how the development of Clojure has happened in general. Clojure is a leader when it comes to realization of new ideas in software engineering, sitting at the frontlines. Probably due to it's lisp nature mixed with it's pragmatic leader.

> core.async which predates ES6 and so does not take advantage of the new async/yield features of ES6

In general, in a Clojure(script) codebase, you don't have the same problems as in a JavaScript codebase. There is no need to change the implementation of a abstract thing like core.async (CSP in this case) just because there is a new way of doing it.

> Clojurescript does not seem to be interested in adapting to the current JS standard

This is true, and I think Clojure is trying to make a point of remaining like that. The JS Standard is evolving after what people want the most, not what it's designer think is the best. I guess this is the essence of the differences between Clojure and JS, one is leading one person, the other what people demand to have.

Re:Learn ClojureScript: Discovering Sequence Operations by iLemming on Sunday October 20, 2019 @01:28AM (#21302444)
> Clojurescript has not adapted to promises/async with its own (improved) version

Why does it have to be in the core or even in core.async? There are libraries for that, e.g: https://github.com/funcool/promesa

Re:Learn ClojureScript: Discovering Sequence Operations by blain_the_train on Sunday October 20, 2019 @12:02AM (#21302247)
I can't speak with specially on those features. But so far, if I want something from js or a npm lib it's I straight up just use it via interopt. Is there a reason that doesn't work here?