Skip to content
This repository was archived by the owner on May 23, 2021. It is now read-only.
This repository was archived by the owner on May 23, 2021. It is now read-only.

Macro expansion mutates original list #17

@spy16

Description

@spy16
  1. define a macro that returns [] on expansion : (def my-macro (macro* [& rest] []))
  2. create a list that would invoke my-macro when evaluated: (def a-list '(my-macro 1 2 "hello"))
  3. a-list represents the list (my-macro 1 2 "hello")
  4. evaluate the list: (eval a-list)
  5. check the value of a-list which is now result of macro expansion (i.e., (do [])) instead of its original value (my-macro 1 2 "hello").

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions