is lumo supporting macros differently, than JVM version of ClojureScript compiler?
I use m.cljs
together with m.clj
to define macros
and
(ns m.m
(:require-macros [m.m]))
in m.cljs
which is best practice in shadow-cljs.
@jiyinyiyong, have you seen this post? http://blog.fikesfarm.com/posts/2016-03-01-clojurescript-macro-sugar.html
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...
@pesterhazy read it before when I want to write Macros in a REPL
now I have existing codebase compiled with shadow-cljs, so it was written in that way, rather than using :refer-macros
.
Any idea why these tests fail? It looks like if tests and error messages aren’t in sync. https://circleci.com/gh/anmonteiro/lumo/1136?utm_campaign=vcs-integration-link&utm_medium=referral&utm_source=github-build-link
Nice, was wondering also, seemd too random to not have been node at work here :)