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
You're right that (quote (1 2 3)) should evaluate to (1 2 3). As for the test, parse("'(1 2 3 #t)") should indeed evaluate to (1 2 3 #t) as you suggest. The [1, 2, 3, True] expected by the test is the abstract syntax tree form of this expression.
I went through the tutorial and it is great!
However, I think the handling of the quote symbol can be better explained. 'quote' is defined as follows in part 2:
So it is expected that "quote (1 2 3)" should be evaluated to "(1 2 3)".
On the other hand, according to test 6:
As far as I understand, ' is a shorthand for quote, so it should be evaluated to "(1 2 3 #t)"
The text was updated successfully, but these errors were encountered: