David Alan Black wrote:


> If you literally mean that String should be understood as inheriting
> all the methods from Array, then I think this is too rigid a picture.


stuff that's not shared could be undef'd, or not included


> I've always thought that strings are basically arrays but merit
> certain kinds of special treatment, extra methods, optimizations
> (syntax as well as speed), etc., because they are so common that it's
> worth trading off some consistency (in their treatment as arrays) to
> make them easier to handle.


extra methods, sure;
wouldn't speed be more behind the scenes?

anyways, (as Dave (?) said), I also think that String#each should return 
each character (modeled as String, Character, or s.th. else)


Tobi

-- 
http://www.pinkjuice.com/