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.
This commit is contained in:
Sami Samhuri 2022-01-08 11:15:20 -08:00 committed by GitHub
parent 778968ef4b
commit 160bb45483
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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
====