Arthur A. Gleckler scripsit:
> If I read this correctly, Scheme could easily support the "simple
> case foldings" described there. Supporting "full case folding," on
> the other hand, would not be possible without locale information
> specifying how to interpret the file being read. For example, the
> conversion listed for "MASSE" above is correct for German, but
> incorrect for English.
No, in fact both simple and full case foldings are locale-independent.
The example means that all of "masse", "ma??e", "Masse", "Ma??e",
"MA???E", and "MASSE" case-fold to the same thing, namely "masse".
Only Turkic case folding is special, because I folds to dotless-i
whereas dotted-I folds to i. Scheme could not support that.
> I'd love it if we supported just simple case folding as specified in
> that document. It would be easy to implement that and the case-
> preserving reader macro mentioned earlier, thus supporting special
> uses for case-sensitive symbols, e.g. XML and foreign-function
> interfaces.
I still believe that identifiers should not be case-folded; I'm just
explaining how they could be.
--
Unless it was by accident that I had John Cowan
offended someone, I never apologized. cowan_at_ccil.org
--Quentin Crisp http://www.ccil.org/~cowan
Received on Tue Nov 14 2006 - 17:48:18 UTC