LambdaCore icon indicating copy to clipboard operation
LambdaCore copied to clipboard

Research Macro System

Open Pebaz opened this issue 5 years ago • 0 comments

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

Pebaz avatar Jun 01 '19 14:06 Pebaz