From: jon@hackcraft.net
Date: Tue Nov 11 2003 - 08:07:30 EST

• Next message: Peter Kirk: "Re: Hexadecimal digits?"

> > Why restricting to this range then [0 to 15]? The range of digits is
> > mathematically
> > infinite if you consider any possible radix...
>
> That's correct, of course. The reason is that, in my experience (as I
> can't speak for everyone else), radix sixteen is very frequently used,
> "which do you have to deal with most in your life - (a) decimal, or (b)
> It'd be touch and go either way. I appreciate that that's not the case
> for most people, of course, but I don't think it could be argued that

I similarly use hexadecimal frequently, and in terms of text I'm not sure
whether I use it more or less often than decimal either. I still don't find
myself needing seperate characters for the digits A to F.

> > In reality, you are defending the adoption of supplementary digits for
> > natural sort.
>
> Yes, that's correct. Except that I don't limit it just to natural sort,
> which is but one algorithm among many. What I am arguing for is no
> discrimination between the digit nine and the digit ten in any algorithm
> for which it makes sense for the digit ten to exist.

No sort algorithms discriminate in any way, the algorithm that it uses which
gives a value to a given character (or whatever is being sorted) does, and
should since discrimination (in the less pejorative sense) is the whole point
of it.

There is nothing to stop such an algorithm from returning true for less
('9', 'A') and equiv('A', 'a').

This archive was generated by hypermail 2.1.5 : Tue Nov 11 2003 - 08:52:51 EST