scheme-macros icon indicating copy to clipboard operation
scheme-macros copied to clipboard

Possibly typo in Exercise 2

Open cireu opened this issue 2 months ago • 0 comments

In https://github.com/mnieper/scheme-macros/blob/main/README.org?plain=1#L3400 it says

2. Write a macro ~when-all~ such that ~(when-all test-expression
   ... expression)~ evaluates ~expression~ only if all
   ~test-expressions~ evaluate to ~#f~.  The macro should
   short-circuit the evaluation the ~test-expressions~ as soon as one
   evaluates to ~#f~.

The sentence only if all ~test-expressions~ evaluate to ~#f~ seems to be weird. when macro evaluates its body when its cond evaluates to non-#f. And if we go on like that, when-all should evaluate its body when all ~test-expressions~ all evaluate to non-#f.

Is it a typo?

cireu avatar Sep 25 '25 09:09 cireu