"Map" mixin analogously to "Enumerable"

gabriele renzi wrote:
<snip>

see the existing RCR, #277 IIRC. Maybe I should add your code (if you

allow me to do it), but I'm out of time ATM :confused:
Anyway, I guess a C patch to current ruby would have more chance to

be

accepted :slight_smile:
Oh, and I definitely agree with you a Map mixin would be great :slight_smile:

I think you meant RCR #278, Hash#collect_to_hash. RCR #277 is 'Make
def return something useful', which you should support, because I wrote
it. :wink:

I've always wondered if it would have been better to have a List
superclass from which classes like Array and Hash would be subclasses.
But perhaps that's neither here nor there.

Regards,

Dan

Daniel Berger ha scritto:

gabriele renzi wrote:
<snip>

see the existing RCR, #277 IIRC. Maybe I should add your code (if you

allow me to do it), but I'm out of time ATM :confused:
Anyway, I guess a C patch to current ruby would have more chance to

be

accepted :slight_smile:
Oh, and I definitely agree with you a Map mixin would be great :slight_smile:

I think you meant RCR #278, Hash#collect_to_hash. RCR #277 is 'Make
def return something useful', which you should support, because I wrote
it. :wink:

actually, RCR261. But I definitely support your RCR :slight_smile:

I've always wondered if it would have been better to have a List
superclass from which classes like Array and Hash would be subclasses.

in this case I disagree, since it would be an almost empty class, I think.
I like the idea of having easy to use mixin much more than the one about a reasonable class hierarchy :slight_smile: