Closed clyfe closed 3 years ago
Thanks for the interesting suggestion. I'm a little leery about having read-config
be a macro, but less wary about load-namespaces
. I'll give it some thought.
How about we have them as macros only in cljs? Options imho are: a) Not have them in cljs. b) Have them as macros in cljs.
read-config
could be a function if the backend was nodejs, I believe. It's sometimes better to omit behaviour that's inconsistent and allow for user implementations.
I believe we can introduce cljs feature parity with some of the fns that are currently clj-only (basically
read-string
&load-namespaces
) by means of macros, at least to some extent. Example:If this seems desirable I can make a more concrete proposal and PR.