summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornodist <kevin.comas.git@gmail.com>2026-06-08 14:53:23 -0400
committernodist <kevin.comas.git@gmail.com>2026-06-08 14:53:23 -0400
commite32c4b377b56d7b23047b44cf8cc95726d4d81ef (patch)
tree387d7e12a40b1f299c702278c4ab5b918dead5a7
parent8338012cabe4f042e6b21d4b06eca6193ed48908 (diff)
use destructuring syntax for namespaces
-rw-r--r--ack.kpl2
-rw-r--r--fib.kpl2
-rw-r--r--fib_import.kpl4
3 files changed, 4 insertions, 4 deletions
diff --git a/ack.kpl b/ack.kpl
index 257e142..3aa6c1d 100644
--- a/ack.kpl
+++ b/ack.kpl
@@ -21,7 +21,7 @@
)
`is_main Fn $ (
- ( args ) `use "sys"
+ `use "sys" [args]
? 4 != `length args {
`return `error String $ (
"#BOLD#RED#Got: %#\n" `format " " `join args
diff --git a/fib.kpl b/fib.kpl
index 540ab5a..18d074c 100644
--- a/fib.kpl
+++ b/fib.kpl
@@ -26,7 +26,7 @@
)
`is_main Fn $ (
- ( args ) `use "sys"
+ `use "sys" [args]
? 3 != `length args {
`return `error String $ (
"#BOLD#RED#Got: %#\n" `format " " `join args
diff --git a/fib_import.kpl b/fib_import.kpl
index 599204f..75bfe48 100644
--- a/fib_import.kpl
+++ b/fib_import.kpl
@@ -1,8 +1,8 @@
// Import and run fib_string function
-( write; stdout ) `use "io"
-( fib_string ) `import "./fib.kpl"
+`use "io" [write; stdout]
+`import "./fib.kpl" [fib_string]
@ 0 .. 30 {[n]
write `sync (stdout; fib_string `sync n)