This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-09-03
Channels
- # announcements (11)
- # atom-editor (8)
- # aws (16)
- # babashka (34)
- # beginners (59)
- # calva (32)
- # cider (8)
- # clj-kondo (43)
- # cljs-dev (52)
- # clojure (26)
- # clojure-europe (11)
- # clojure-italy (2)
- # clojure-nl (5)
- # clojure-spec (16)
- # clojure-uk (44)
- # clojurescript (5)
- # core-async (21)
- # cursive (14)
- # datomic (53)
- # figwheel-main (4)
- # fulcro (5)
- # graphql (6)
- # java (3)
- # kaocha (5)
- # leiningen (6)
- # local-first-clojure (1)
- # malli (25)
- # off-topic (40)
- # other-languages (1)
- # pathom (5)
- # pedestal (3)
- # re-frame (4)
- # reitit (2)
- # reveal (8)
- # rum (21)
- # sci (16)
- # shadow-cljs (90)
- # spacemacs (8)
- # tools-deps (10)
- # vrac (6)
- # xtdb (12)
@jeroenvandijk I think I may have a nice solution for the macro rewriting problem: https://github.com/borkdude/sci/issues/397
yeah I think that would work and be user friendly when using the backtick. The only thing would be that the namespace symbol of the implementation would end up in Sci context somewhere. Not sure if that is a real issue
maybe if you would like to hide the underlying namespace structure to the Sci user
thinking out loud here, not even sure what you could do with that
good point
Sounds like a good solution
The macros that will work with this are still only those who don't cause side effects at compile time and probably also not use &env
Another (more costly, but maybe not significant) solution would be to make sci postwalk the macroexpansion and replace the external namespaces with inner ones
In a repl environment and using macroexpand
the last option would be the least surprising as it doesn’t leak implementation details. But the performance concern is also a valid one
Maybe it's not that significant though, since this happens only once, not in a loop or anything
would one or the other matter for the output of stacktraces?