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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user