[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Scheme-reports] char-upcase/char-downcase/char-foldcase should be deprecated



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 07/02/2012 02:10 PM, Per Bothner wrote:
> These functions don't work in the general case. People should be 
> using the string versions.

In my opinion, the only sensible role for characters
in a Unicode-enabled world is that they ought to be
strings of length one.

I think that the standard should permit (and possibly
even require)

(string? #/a) ==> #t

and that all string functions should work on
characters. char-upcase, char-downcase, and
char-foldcase should, as Per says, be deprecated.

Additionally, so should all procedures that
require character arguments but duplicate
functionality available from other procedures
that take string arguments in their place.

				Bear

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQEcBAEBAgAGBQJP8hysAAoJEAOzWkqOibfN5N0H/i9uc1UHk1Fu8XPYc2pCy1so
nVkWAgk5reZuxTY+e7I08J8YxG86nvBHxjpEyreUK/gfj0OcBUYgg9Tnp279eChP
CgcOyIyx66Hpo3HmTpjsMiL6idiHADjs+OrwzlKUaAWFJvhi//BC/Jxfy2sndKMu
JoFlSya5MsKdr6aQNvcXwng0IbWkx5FFp9j6HFniItjQiOavz4JzFxeW45CiSgB7
H6AxVYBmhI/8FQ/9CORYnqZpMupF+sJq3Ky3qw0bzvw3SqsMa+3zlGHPcuamTZKB
vwetvimpTUNF6wfbVpNcBpNQVOhypDQgPB86Z0KtXwA+sip9Lg562ObODnI8VUA=
=IJwM
-----END PGP SIGNATURE-----

_______________________________________________
Scheme-reports mailing list
Scheme-reports@x
http://lists.scheme-reports.org/cgi-bin/mailman/listinfo/scheme-reports