Re: When is "z" != "z" ?
| From: | Richard Lynch | Date: | Wed, 07 Jun 2006 01:09:32 +0000 |
| Subject: | Re: When is "z" != "z" ? | ||
| References: | 1 2 3 4 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-237521@lists.php.net to get a copy of this message | ||
On Mon, June 5, 2006 9:00 pm, tedd wrote:
>>Does that make more sense?
>
> Maybe to you, but not me.
a
b
c
.
.
.
x
y
z
aa
ab
ac
.
.
.
ax
ay
az
ba
bb
bc
.
.
.
aaa
.
.
.
zzz
aaaa
.
.
.
zzzz
.
.
.
aaaaaaaaaaaaaaaaaaaa
.
.
.
zzzzzzzzzzzzzzzzzzzz
It's just like 1 thru 9 followed by 10, except that it is NOT an
ordered set in terms of < and >
> In my last post I showed an "actual sequence" which is debatable. It
> could be interpreted that the infinite set starts at "a, aa, aaa,... "
> and never reaches "b". Oddly enough, this could be viewed in all sorts
> of ways. It's probably best if we don't look at characters as numbers.
EXACTLY!
They aren't numbers.
So doing ++ to one of them, doesn't necessarily end up with an ordered
set.
Rasmus chose to make ++ be useful for generating sensible sequential
file names, not sensible ordered strings.
--
Like Music?
http://l-i-e.com/artists.htm