From: Robert Dober Date: 2007-07-19T05:46:29+09:00 Subject: Re: Which messages objects shall respond to? (was: syntactic sugar buzz) On 7/18/07, Martin DeMello wrote: > On 7/19/07, Robert Dober wrote: > > > > Another example, what are the chances that Hash#map returning an array > > is more useful than returning it a hash. I have complained about this > > "inconsistency" not because it is an inconsistency, but because I feel > > it is an useless, counter productive inconsistency. > > Side effect of #map being defined generically in Enumerable, that is a good point, it is indeed well documented :), which is important in theses contexts > though I > agree that a "structural" map would be more useful for a lot of data > structures. Anyway that is the level of discussion I find more useful :) Robert -- I always knew that one day Smalltalk would replace Java. I just didn't know it would be called Ruby -- Kent Beck