W3C home > Mailing lists > Public > public-script-coord@w3.org > April to June 2013

RE: APIs that overload numbers and strings

From: Phillips, Addison <addison@lab126.com>
Date: Sun, 14 Apr 2013 22:59:13 +0000
To: Jonas Sicking <jonas@sicking.cc>, Boris Zbarsky <bzbarsky@mit.edu>
CC: "public-script-coord@w3.org" <public-script-coord@w3.org>, Ehsan Akhgari <ehsan.akhgari@gmail.com>
Message-ID: <7C0AF84C6D560544A17DDDEB68A9DFB5079D99@ex10-mbx-31004.ant.amazon.com>
> 
> Note that if we in indexedDB treated all numbers as strings, that would mean
> that 8 would sort between 70 and 90.

That's not necessarily true: collation schemes can often be tailored to recognize numeric strings and treat them accordingly. It depends on how your implementation is set up... although I tend to agree with the meta-argument: numbers should sort like numbers.

Addison

Addison Phillips
Globalization Architect (Amazon Lab126)
Chair (W3C I18N WG)

Internationalization is not a feature.
It is an architecture.


Received on Sunday, 14 April 2013 23:00:23 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 17:14:12 UTC