From: Trans Date: 2008-02-29T23:28:40+09:00 Subject: Re: Monkeypatching is Destroying Ruby On Feb 29, 7:33 am, Florian Gilcher wrote: > On Feb 29, 2008, at 1:20 PM, Trans wrote: > > > > > On Feb 24, 4:43 pm, Gary Wright wrote: > > >> Facets defines Hash#- based on [key,value] pairs and not keys. An > >> argument can be made for either approach but you can't integrate code > >> bases that have different expectations for Hash#-. > > > BTW, there is a reason for that. You can do: > > > ahash - otherhash.keys > > > T. > > That does not hurt the argument. If you expect this, you are fine. > If you define or expect a different interpretation, you are in a world > of pain. Sure. I was just pointing out why that particular functionality was chosen, vs. the other reasonable suggestion. That's another benefit of using a common library --you get a lot of collective minds evolution behind things. T.