[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Case sensitivity
From: |
Keith Wright |
Subject: |
Re: Case sensitivity |
Date: |
Sun, 6 Jan 2002 20:57:08 -0500 |
> From: Guan Yang <address@hidden>
>
> I'm running Guile 1.4:
> guile> (eqv? 'a 'A)
> #f
>
> Isn't this a violation of R5RS section 6.3.3?
Yes it is.
The guile 1.5.4 manual says this about that:
> Scheme as defined in R5RS is not case sensitive when reading symbols.
> Guile, on the contrary is case sensitive by default, so the identifiers
>
> guile-whuzzy
> Guile-Whuzzy
>
> are the same in R5RS Scheme, but are different in Guile.
>
> It is possible to turn off case sensitivity in Guile by setting the
> reader option `case-insensitive'. More on reader options can be found
> at (*note Reader options::).
>
> (read-enable 'case-insensitive)
>
> Note that this is seldom a problem, because Scheme programmers tend
> not to use uppercase letters in their identifiers anyway.
If it were up to me, I would make the default behaviour correspond
to R*RS,
--
-- Keith Wright <address@hidden>
Programmer in Chief, Free Computer Shop <http://www.free-comp-shop.com>
--- Food, Shelter, Source code. ---