Skip to content

Research Macro System #49

@Pebaz

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

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