This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
- # admin-announcements (104)
- # adventofcode (3)
- # aws (1)
- # boot (651)
- # cljs-dev (21)
- # cljsrn (12)
- # clojure (81)
- # clojure-china (1)
- # clojure-germany (1)
- # clojure-miami (2)
- # clojure-nl (8)
- # clojure-russia (19)
- # clojurescript (208)
- # core-typed (1)
- # cursive (19)
- # datavis (55)
- # datomic (57)
- # events (1)
- # hoplon (102)
- # ldnclj (12)
- # leiningen (8)
- # off-topic (11)
- # om (127)
- # onyx (21)
- # parinfer (2)
- # portland-or (3)
- # proton (2)
- # re-frame (2)
- # reagent (6)
@dnolen: with @mfikes we were a bit brainstorming some addition to load-fn protocol if you are interested.
Basically Mike observed that the
:file key in
:meta at the moment contains the namespace and in planck this is a sufficient way to fetch files.
But what if load-fn in its map can return a :file-path key which then it will be added to the AST (or as Mike was saying) will set
It would immensely simplify parts of replumb and I guess planck. Mike correct me if I said something wrong 😄
@richiardiandrea: adding stuff to the AST should be the very last idea
there should be some way to accomplish what you want without mucking around with the AST
I suppose in “regular” ClojureScript, you end up with
:file in the AST. In bootstrapped ClojureScript the value for this key is
Yeah, the bootstrap API, in abstracting away from I/O, essentially leaves the
nil. Perhaps an experiment could be done to see if the API could be extended to allow clients to optionally provide the value to shove in there.
well sometimes is a symbol isn't it?
but yeah that would be the best, the environment knows what :file should be
Yeah, @richiardiandrea I think perhaps we should try for an experiment, and obtain guidance from @dnolen along the lines of “don’t add to the AST”, etc.
ok I can help on this, slowly, as it is my first peek at the AST 😉
@dnolen: The conceptual idea:
*load-fn* could call back with an extra key in its map, and
cljs.js can take it and put it in the right place in the AST (instead of the
nil that evidently makes its way in there).
@richiardiandrea: We could collaborate on a patch proposal if you’d like. That would ease you into the concept.
Mike was even suggesting that
:file can be extended to
http:// etc...which is very intriguing 😄
yes Mike, definitely