[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Scheme-reports] DISCUSSION/VOTE: The character tower
- To: Sascha Ziemann <ceving@x>
- Subject: Re: [Scheme-reports] DISCUSSION/VOTE: The character tower
- From: Bear <bear@x>
- Date: Wed, 07 May 2014 13:26:59 -0700
- Cc: scheme-reports <scheme-reports@x>
- In-reply-to: <CAGUt3y7c5xWL2oTu2_ipfBQYJ0j1RincatF3a0OEh3YgVMV1tQ@mail.gmail.com>
- References: <20140506005154.GF5011@mercury.ccil.org> <1399355074.9426.107.camel@excessive.dsl.static.sonic.net> <20140506062205.GI5011@mercury.ccil.org> <1399397365.9426.168.camel@excessive.dsl.static.sonic.net> <20140506184520.GR5011@mercury.ccil.org> <1399409125.19292.31.camel@excessive.dsl.static.sonic.net> <20140506220452.GY5011@mercury.ccil.org> <1399415476.21129.6.camel@excessive.dsl.static.sonic.net> <CAGUt3y7c5xWL2oTu2_ipfBQYJ0j1RincatF3a0OEh3YgVMV1tQ@mail.gmail.com>
On Wed, 2014-05-07 at 10:08 +0200, Sascha Ziemann wrote:
> 2014-05-07 0:31 GMT+02:00 Bear <bear@x>:
> >
> > I would be rather upset if
> >
> > (string=? (string #\A #\x301) (string #\xc1)) ==> #f
>
> But there is a difference.
> #\A #\x301 is an Unicode expression and #\xc1 is a Unicode literal.
> You have to evaluate the first to get the second.
Well, no.
(string #\A #\x301) and (string #\xc1) are both expressions returning
a string. Unicode canonical equivalence says they should return the
same string. Apparently our standards committee believes that they
should return different strings, but I do not understand why.
> And if you cryptographically sign the first it would differ from the
> signature of the second.
That is a false distinction, and will lead to much wailing and
gnashing of teeth when, eg, signatures don't match documents,
authentication codes fail, etc ad nauseam, and it all falls on
application programmers and happens over and over, because the
scheme implementers are not allowed to fix it once and for all.
Bear
_______________________________________________
Scheme-reports mailing list
Scheme-reports@x
http://lists.scheme-reports.org/cgi-bin/mailman/listinfo/scheme-reports