[racket] Racket style question

From: Rodolfo Carvalho (rhcarvalho at gmail.com)
Date: Wed Mar 21 17:47:33 EDT 2012

On Wed, Mar 21, 2012 at 18:37, Joe Gilray <jgilray at gmail.com> wrote:

> Hi Rodolfo,
>
> In this case though, printf will never return #f so "and" is equivalent to
> "begin", right?
>


The docs says it returns "void", and that is not #f.
So (and (printf ...) (something-else)) is equivalent to (begin (printf ...)
(something-else)).

Note that if you put a third thing inside (and ...) or (begin ...), the
behavior will depend on "something-else".
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20120321/80124f9a/attachment.html>

Posted on the users mailing list.