[plt-scheme] HTDP Exercises and language levels
Matthias Felleisen wrote:
> (draw-solid-disk (make-posn 10 10) 20 'red)
> produces true.
>
> (draw-solid-disk (make-posn 50 50) 40 'green)
> produces true.
>
> You want the first and the second expression to evaluate to true.
> How can you force this to be the case?
>
> Apologies for abusing and, but it offered itself. -- Matthias
>
> P.S. I won't read any flames about the use of and for this purpose.
I don't see it as abusive. It's a fairly common idiom in any language
that uses sequenced AND with status-returning functions (including C and
Perl).
--
Bradd W. Szonye
http://www.szonye.com/bradd