You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Something like this is heresy against lisp (shows current behaviour):
spresso> print
built-in function
spresso> print"hello""hello"
spresso> +102020
spresso> define x 10
Runtime Error: Symbolnotfound: x
In input[3]:
1 | define x 10
^
spresso>
The text was updated successfully, but these errors were encountered:
This happens because we allow expressions separated by whitespace (including newlines). Each token in the original example is considered a separate expression which are executed sequentially and the result of the last expression is printed.
Another example which looks normal:
spresso> (define x 10) (define y 20) (define z 30)
30
Something like this is heresy against lisp (shows current behaviour):
The text was updated successfully, but these errors were encountered: