Skip to content

everywhere

TurtleKitty edited this page May 11, 2019 · 2 revisions

everywhere

This allows the programmer to define variables and procedures to be available during compile time and run time.

(everywhere
   (def foo 3)
   (proc bar (x) (+ x 30)))

(op baz ()
   %(say $(bar foo)))

; compile-time
(baz)       ; (say 33)

; run-time
(bar foo)   ; 33
Clone this wiki locally