From 160bb4548392733e91baec6ed0dcf592bc4953a8 Mon Sep 17 00:00:00 2001 From: Sami Samhuri Date: Sat, 8 Jan 2022 11:15:20 -0800 Subject: [PATCH] State that naked calls outside the repl are errors It could have been taken to mean that they're silently ignored or something, which is not the case. We don't attempt to parse naked lists. --- Readme.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Readme.md b/Readme.md index 4dfeccd..4243ba3 100644 --- a/Readme.md +++ b/Readme.md @@ -127,7 +127,7 @@ One final thing to note is an experiment called *naked calls* (or expressions). > empty? (lambda (x) (or (null? x) (is? x 0) (equal? x ""))) -A naked expression with one value evaluates to the single value it contains so that typing in an atomic expression doesn't produce strange results. Due to this behaviour one caveat is that if you want to invoke a function without arguments you cannot use a naked list. When evaluating code from a file naked lists are not parsed at all. +A naked expression with one value evaluates to the single value it contains so that typing in an atomic expression doesn't produce strange results. Due to this behaviour one caveat is that if you want to invoke a function without arguments you cannot use a naked list. When evaluating code from a file naked lists are not parsed at all and will result in syntax errors. TODO ====