(defmacro moo1 [] '(defn foo []))
(defmacro moo2 [] `(defn foo []))
stigmergy.wocket.server> (moo1) #'stigmergy.wocket.server/foo
stigmergy.wocket.server> (moo2) CompilerException clojure.lang.ExceptionInfo: Call to clojure.core/defn did not conform to spec: In: [0] val: stigmergy.wocket.server/foo fails spec: :clojure.core.specs.alpha/defn-args at: [:args :name] predicat\e: simple-symbol? #:clojure.spec.alpha{:problems [{:path [:args :name], :pred clojure.core/simple-symbol?, :val stigmergy.wocket.ser\ver/foo, :via [:clojure.core.specs.alpha/defn-args :clojure.core.specs.alpha/defn-args], :in [0]}], :spec #object[c\lojure.spec.alpha$regex_spec_impl$reify__2436 0x33d84248 "clojure.spec.alpha$regex_spec_impl$reify__2436@33d84248"]\, :value (stigmergy.wocket.server/foo []), :args (stigmergy.wocket.server/foo [])}, compiling:(*cider-repl workspac\e/clj-collage:localhost:39319(clj)*:131:26)
stigmergy.wocket.server> (macroexpand-1 '(moo1)) (defn foo [])
stigmergy.wocket.server> (macroexpand-1 '(moo2)) (clojure.core/defn stigmergy.wocket.server/foo [])
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clo...@googlegroups.com
Note that posts from new members are moderated - please be patient with your first post.
To unsubscribe from this group, send email to
clojure+u...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
---
You received this message because you are subscribed to the Google Groups "Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email to clojure+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/clojure/82bdc4fc-2453-4561-80da-e3c6d6346900%40googlegroups.com.
(println "plain-quote: " 'map)
(println "syntax-quote: " `map)
plain-quote: mapsyntax-quote: clojure.core/map
To view this discussion on the web visit https://groups.google.com/d/msgid/clojure/CAABz%3DKr4qagDt1URgb9ZPHxvfCG4UfjiRE8Ch7Moaf%2BiX0UPaw%40mail.gmail.com.