1
0
mirror of https://github.com/janet-lang/janet synced 2025-11-18 16:25:11 +00:00

Replace varset! with algol style :=

This commit is contained in:
Calvin Rose
2018-03-16 18:15:34 -04:00
parent f5213e4064
commit 4a76f2ae32
6 changed files with 27 additions and 22 deletions

View File

@@ -13,7 +13,7 @@
(print " -r Enter the repl after running all scripts")
(exit 0))
"v" (fn [] (print VERSION) (exit 0))
"r" (fn [] (varset! should-repl true))
"r" (fn [] (:= should-repl true))
})
(defn dohandler [n]
@@ -27,7 +27,7 @@
(if (= "-" (string-slice arg 0 1))
(dohandler (string-slice arg 1 2))
(do
(varset! no-file false)
(:= no-file false)
(import arg))))
(when (or should-repl no-file)