From: "Hal E. Fulton" Date: 2002-07-08T04:35:55+09:00 Subject: Re: is there a better string.each? ----- Original Message ----- From: "Tom Sawyer" To: "ruby-talk ML" Sent: Sunday, July 07, 2002 2:30 PM Subject: Re: is there a better string.each? > > Yes, quite right. A linked list is also an > > ordered collection of items. Yet we wouldn't > > say that a string "is a" linked list. > > > > Hal Fulton > > not to be mean, but this is just the worst logic: > > "Yes, quite right. A *cat* is also an *animal*. > Yet we wouldn't say that a *parrot* "is a" *cat*." > > no one has said anything to the effect that a string is a linked list. But you were saying that a string is an array because it's an ordered collection of elements. By that logic, a string is also a linked list, no? A string is not intrinsically an array any more than it is intrinsically a linked list. Hal Fulton