cljs-dev

ClojureScript compiler & std lib dev, https://clojurescript.org/community/dev
souenzzo 2019-11-01T13:58:03.085400Z

dnolen 2019-11-01T15:41:46.086800Z

You cannot dynamically require in general, so yes not feasible

dominicm 2019-11-01T15:58:17.087500Z

@dnolen would it be possible to do it the same way resolve works (ie not dynamic)

dnolen 2019-11-01T15:59:14.088200Z

resolve already exists as macro time operation

dnolen 2019-11-01T15:59:39.088800Z

See the docs on codesplitting

dominicm 2019-11-01T16:09:11.089600Z

I'm not after code splitting fwiw.

dnolen 2019-11-01T16:15:09.090200Z

I know

dnolen 2019-11-01T16:15:22.090700Z

But you’re looking for an example

dnolen 2019-11-01T16:17:06.091200Z

See also cljs.anayzer.api

thheller 2019-11-01T16:23:27.092700Z

@dominicm no there cannot be a static (requiring-resolve 'foo.bar/something) since require itself is async in CLJS

thheller 2019-11-01T16:24:30.093700Z

(and might require compilation which won't be available in release builds)

lilactown 2019-11-01T22:12:57.094900Z

where is fn* handled?

2019-11-02T08:12:44.096Z

Are you playing with async/await? I can share a branch in cljs with async function and await implemented in the compiler when I get to my laptop

lilactown 2019-11-02T14:56:34.098600Z

That would be awesome

lilactown 2019-11-01T22:13:21.095400Z

I see it used in cljs.core but not where it’s defined or handled (assuming it’s a special symbol)

lilactown 2019-11-01T22:14:45.095900Z

ty!