[plt-scheme] if without third argument

From: Robby Findler (robby at cs.uchicago.edu)
Date: Fri Jun 27 07:48:50 EDT 2008

Because we found that it helped us catch our own mistakes more easily.
If you want, there is "when" and "unless" that are like the two
argument if, or you can use r6rs.

Robby

On Fri, Jun 27, 2008 at 6:35 AM, Tamas K Papp <tpapp at princeton.edu> wrote:
> AFAIK it is allowed (both in R6RS and R5RS), but mzscheme doesn't like it:
>
> Welcome to MzScheme v4.0.1 [cgc], Copyright (c) 2004-2008 PLT Scheme Inc.
>> (if 1 2 3)
> 2
>> (if 1 2)
> stdin::11: if: bad syntax (must have an "else" expression) in: (if 1 2)
>
>  === context ===
> /usr/lib/plt/collects/scheme/private/misc.ss:68:7
>
> Why is this?
>
> Sorry for my ignorance.
>
> Tamas
> _________________________________________________
>  For list-related administrative tasks:
>  http://list.cs.brown.edu/mailman/listinfo/plt-scheme
>
>


Posted on the users mailing list.