[racket] in praise of if's mandatory else clause

From: Grant Rettke (grettke at acm.org)
Date: Sun May 29 22:01:49 EDT 2011

On Sun, May 29, 2011 at 1:17 AM, Neil Van Dyke <neil at neilvandyke.org> wrote:
> Doing it manually turned out to be fortunate, since Racket has
> already found *five* independent (i.e., not copy&pasted) locations where the
> programmers clearly intended to do "(if B E1 E2)", but instead did something
> else, usually "(if B E1) E2".  I won't be surprised if I find a few more by
> the time all the code compiles.

One of the few code inspections that we do on the CI server for our
Java and .NET systems (virtually all of our billable work) is to
forbid one-armed if statements; they are always a source of trouble.

Posted on the users mailing list.