From: "David A. Black" Date: 2007-12-05T16:24:34+09:00 Subject: Re: Why are "Array#push" and "pop" not "push!" and "pop!"? Hi -- On Wed, 5 Dec 2007, Christian von Kleist wrote: > Good point. :) > > I remember having the same question about shift/unshift when I first > learned Ruby. I remember doing something like the following: > > item = items.shift! > > ...and I was surprised to see a NoMethodError. It seemed to violate > the rule I supposed existed: all destructive methods end in ! We're lucky that there's no such rule. Imagine: "string" <