mirror of
https://github.com/samsonjs/lake.git
synced 2026-03-25 08:55:49 +00:00
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:
parent
778968ef4b
commit
160bb45483
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
====
|
||||
|
|
|
|||
Loading…
Reference in a new issue