Fork me on GitHub
#lumo
<
2017-12-21
>
Jon04:12:30

is lumo supporting macros differently, than JVM version of ClojureScript compiler?

Jon04:12:03

I use m.cljs together with m.clj to define macros

Jon04:12:39

(ns m.m
  (:require-macros [m.m]))

Jon04:12:48

in m.cljs

Jon04:12:20

which is best practice in shadow-cljs.

honzabrecka12:12:56

I compiled lumo from current master (with latest clojurescript from current master as well) and I'm getting an error when trying to do:

(defn catch [x] x)
(catch 1)
;  No method in multimethod 'cljs.analyzer/parse' for dispatch value: catch at line 1...

Jon15:12:37

@pesterhazy read it before when I want to write Macros in a REPL

Jon15:12:24

now I have existing codebase compiled with shadow-cljs, so it was written in that way, rather than using :refer-macros.

cgrand09:12:52

Found! The error message changed in Node...

hlolli09:12:08

Nice, was wondering also, seemd too random to not have been node at work here :)