aboutsummaryrefslogtreecommitdiff
path: root/examples/how_do_i.nom
diff options
context:
space:
mode:
Diffstat (limited to 'examples/how_do_i.nom')
-rw-r--r--examples/how_do_i.nom10
1 files changed, 5 insertions, 5 deletions
diff --git a/examples/how_do_i.nom b/examples/how_do_i.nom
index a235e65..210e001 100644
--- a/examples/how_do_i.nom
+++ b/examples/how_do_i.nom
@@ -217,14 +217,14 @@ I think "chihuahuas" are worse than "corgis"
"Howdy pardner" is what she said
# The language only reserves []{}().,:;$\ as special characters, so actions
- can have really funky names!
-(>> $foo_bar @&' -->< $ @&_~-^-~_~-^ $1 !) means:
- say $foo_bar
+ and variables can use symbols freely:
+(>> $(∐) @&' -->< $ @&_~-^ ⊗⊞∰ $1 !) means:
+ say $(∐)
say $
say $1
->> "wow" @&' -->< "so flexible!" @&_~-^-~_~-^ "even numbers can be variables!" !
+>> "wow" @&' -->< "so flexible!" @&_~-^ ⊗⊞∰ "even numbers can be variables!" !
-# There's also full unicode support
+# You can also use unicode in variable and action names:
$こんにちは = "こんにちは"
($ と言う) means "\($)世界"
say ($こんにちは と言う)