Tensegritics / Tensegritics/ClojureDart
Reader conditional `:cljd` not working for `defmacro`
Open
Nobody has claimed this yet.
- Dominant language
- Clojure
- Stars
- 1.6k
- Forks
- 119
- PR merge metrics
- No merged PRs in 30d
Description
I'm calling (->Node 10 20) and I'm having an error when using the reader conditional :cljd to define the ->Node macro.
Oh noes! 😵
Error while compiling (->Node 10 20)
See definitions below
;; It works.
(defmacro ->Node
[body stack])
;; It does not work (the error appears only when calling `->Node`).
#?(:cljd (defmacro ->Node
[body stack]))
;; It works.
#?(:clj (defmacro ->Node
[body stack]))
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No source file or test is named. Start by reproducing the two defmacro forms and the (-�3eNode 10 20) call, then trace how the :cljd reader conditional is handled for macro definitions. Done means the conditional definition compiles and the call no longer produces the reported compilation error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- clojure, dart
- Domain
- compilers
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100