Look at some examples
World Hello
; A little message
define say-hello [
"Hello, " swap string-append
"!\n" string-append
print
]
"World" say-hello
Hello World
; A little more natural
define hello [ upquote say-hello ]
hello "friend"
Greetings World
; Oh, less natural again, okay
define greetings [ updo hello ]
greetings "earthling"
You can just import new syntax
; Just like your favourite internet script
import syntax/function
function hello(s) { s say-hello }
hello("new syntax")
Another example!
; Multi-value assignment
import syntax/assign
function contrived-example(a b) { a b add a b mul }
[two also-two] := contrived-example(2 2)
two also-two equal? if [
"2 + 2 = 2 * 2! Amazing!" print
] [ oh no ]