From: Joe Peterson Date: 2006-12-15T10:45:33+09:00 Subject: Re: String#insert method is destructive... inconsistent? Joe Peterson wrote: > Ah, thanks for the link. I tried Googling for "ruby String#insert > non-destructive" and variants like that (just didn't do "ruby-talk"). I > saw a few hits that mentioned insert, etc., but nothing that addressed > my pondering. > > -LavaJoe Sorry for so many posts... But I realized that the search I had done actually found a different message within the same thread mentioned above, and the thread talks about the same issue, but in the "Array" class. There, both "insert" and "delete" are destructive and have no "!" versions (it seems that "!" is used more sparingly in Array), so I did not think that the thread addressed my concern at first glance. I have read the whole thread - very interesting, and it's from 2000! It appears that how one decides to define a method is largely based upon that person's impression of the meaning of the method (in other words, the "feeling" the method invokes, which may not invoke quite the same feeling in others). -LavaJoe -- Posted via http://www.ruby-forum.com/.