From: "Hal E. Fulton" Date: 2003-04-08T23:21:29+09:00 Subject: Re: Array Sutraction ----- Original Message ----- From: "Michael Campbell" To: "ruby-talk ML" Sent: Tuesday, April 08, 2003 9:17 AM Subject: Re: Array Sutraction > > > So [1, 1, 2, 2] - [2] should yield the same as [1, 1, 2, 2] - [2, > > > 2]? > > > That seems odd to me. > > > > I agree. But the presence of a Set in 1.8 > > maes me feel better. After all, an Array > > is not in itself a bag or a set, so we can > > define its minus operator more or less > > arbitrarily. > > > I'll defer to others on the behavior (though I might still disagree), > but I'd at least like to not have it change quite so drastically in a > dot release. (Is 1.6 -> 1.8 considered a dot release?) That's the most disturbing part to me. Is there at least a warning or something? Of course, anyone who encounters a bug can add his own Array#- which does a uniq after (or before) calling the "real" one. Hal