From: "David A. Black" Date: 2004-09-01T20:20:31+09:00 Subject: Re: "destructiveness" of delete Hi -- On Wed, 1 Sep 2004, Yukihiro Matsumoto wrote: > Hi, > > In message ""destructiveness" of delete" > on 04/08/31, "David A. Black" writes: > > |I know there's no Array#delete! because "delete" already > |implies in-place change. But I recently noticed that > |there is a String#delete! as well as String#delete. Just > |wondering why, or whether these behaviors will be unified. > > Just because they are different, probably they had different origins > that unfortunately slept away from my brain. I didn't feel strings > and arrays were similar no more than they both had [] and each, > and I still don't. I don't either, but I think the question of how "delete" relates to "delete!" is separate. I would favor unification, not because strings should be similar to arrays but to avoid having two conflicting rationales (even if one of them has been forgotten :-) for how "delete[!]" relates to its receiver. David -- David A. Black dblack@wobblini.net