Skip to content

Research Macro System #49

Description

@Pebaz

Need to implement macros. Macros are just functions that have their arguments passed to them untouched rather than pre-evaluated.

Potential plan:

  • Prevent the evaluation of Array from evaluating arguments.
  • Implement a Macro variant for Value.
  • Implement an eval built-in function for Macro designers to evaluate Arrays of code.
(defm setq '[key value] '[
    (set 'key (eval value))
])

(setq name "Pebaz")

Related: https://software-lab.de/doc/tut.html#fun

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions