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
Having set! (etc.) evaluate such that (void? (set! x 1)) may be easier in this case, but if that's unacceptable (per the last comment on #21), it should be explained somewhere that (void) (the output of set! in the REPL) is not the same as (void) (which produces a void value).
The value of calling
set!
appears to be (some form of) void:but doesn't behave as
void
or(void)
:This is causing confusion for students because they have to use something like
(begin (set! x y) (void))
even though it looks unnecessary.The text was updated successfully, but these errors were encountered: