[plt-scheme] HTDP Exercises and language levels
At Wed, 19 Nov 2003 08:08:27 -0800, "Bradd W. Szonye" wrote:
> For list-related administrative tasks:
> http://list.cs.brown.edu/mailman/listinfo/plt-scheme
>
> 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).
<not-flame>
Oh yes, but the abuse is that these functions aren't status returning
-- they return true!
:)
</not-flame>
Robby