From: "Iñaki Baz Castillo" Date: 2008-04-09T07:29:28+09:00 Subject: Re: Ruby’s not ready - an indepth essay El Martes, 8 de Abril de 2008, Joel VanderWerf escribió: > > What is the difference between the length and size methods on > > String, Array, and Hash? There is none. Hashes have update and > > merge methods. What's the difference? None. > > > > These are particularly atrocious synonyms, because the English > > words they are based on aren't synonymous. What if you have a > > class representing a geometric object, and you want length and > > size to return different measurements? > > Sure, so on your geometric class you define length and size to be > different. It happens that they are the same for strings (and why not). > They don't have to be the same for other things. Very good example ;) -- Iñaki Baz Castillo