David Flanagan wrote: > Akinori MUSHA wrote: >> Hi, >> >> Earlier today I added a new instance method named `with_memo' to >> Enumerable::Enumerator, but I'm not 100% sure if the name fits the >> function. > > What does the method do? What's the use-case? And can't new methods > like this wait 'till the Ruby 2.0 development branch opens up? :-) > > David Flanagan Also, how does Enumerator#with_memo differ from Enumerable#inject? David Flanagan >> Some other options I could think of include: >> >> with: >> - too general; may clash with a reserved keyword in future >> >> with_object: >> - not bad, but too unspecific and a bit too long to use often >> >> with_obj: >> - looks terrible when we have ObjectSpace.each_object >> >> with_accum: >> - too specific >> >> >> Anyone think of a better name? >> >> -- >> Akinori MUSHA / http://akinori.org/ > > >