[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Scheme-reports] ANN: first draft of R7RS small language available
- To: Andrzej <ndrwrdck@x>
- Subject: Re: [Scheme-reports] ANN: first draft of R7RS small language available
- From: Andre van Tonder <andre@x>
- Date: Tue, 3 May 2011 08:52:27 -0400 (EDT)
- Cc: scheme-reports <scheme-reports@x>
- In-reply-to: <BANLkTim=5TfhBkDHj9Pv_R+S99JrEeNojw@mail.gmail.com>
- References: <BANLkTim=5TfhBkDHj9Pv_R+S99JrEeNojw@mail.gmail.com>
On Tue, 3 May 2011, Andrzej wrote:
> Alex Shinn wrote:
>> The implications for this are that while
>>
>> (let ((else #f))
>> (cond (else (display "else clause matched"))))
>>
>> is required to not display anything as in R5RS,
>
> I'm probably missing something obvious but can you please explain why
> R5RS implementation should behave like this?
Because expressions should be invariant under alpha renaming. In other words,
the expression
(let ((else #f))
(cond (else (display "else clause matched"))))
should be equivalent to
(let ((x #f))
(cond (x (display "else clause matched"))))
_______________________________________________
Scheme-reports mailing list
Scheme-reports@x
http://lists.scheme-reports.org/cgi-bin/mailman/listinfo/scheme-reports