From e32c4b377b56d7b23047b44cf8cc95726d4d81ef Mon Sep 17 00:00:00 2001 From: nodist Date: Mon, 8 Jun 2026 14:53:23 -0400 Subject: use destructuring syntax for namespaces --- ack.kpl | 2 +- fib.kpl | 2 +- fib_import.kpl | 4 ++-- 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) -- cgit v1.2.3