[racket] Cond function with test-expr = then-body works but is it wise?

From: Don Green (infodeveloperdon at gmail.com)
Date: Fri May 24 12:08:16 EDT 2013

It is possible to create a cond test-expr that also serves as the
then-body, however, this means that the expression would be executed twice.

This seems to be ill advised in principle.

 Question: If it is ill-advised to create a cond test-expression that also
serves as the then body, then what function is recommend?


 I am aware of the (cdr (or ... form.

I am aware of the cond ... test-expr => proc-expr] form option.

Thanks

Don Green
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20130524/229548f4/attachment.html>

Posted on the users mailing list.