mirror of
https://github.com/janet-lang/janet
synced 2025-11-02 08:33:04 +00:00
Replace varset! with algol style :=
This commit is contained in:
@@ -11,10 +11,11 @@
|
||||
state
|
||||
(do
|
||||
(def n (f))
|
||||
(varset! state n)
|
||||
(varset! loaded true)
|
||||
(:= state n)
|
||||
(:= loaded true)
|
||||
n))))
|
||||
|
||||
# This creates one more closure than necessary but oh well
|
||||
(defmacro delay
|
||||
"Macro for lazy evaluation"
|
||||
[& forms] (tuple mem0 (apply1 tuple (array-concat ['fn []] forms))))
|
||||
|
||||
Reference in New Issue
Block a user