From: "Hal E. Fulton" Date: 2003-06-18T04:55:27+09:00 Subject: Re: [RCR] Array#push(empty array expanded) => no exception ----- Original Message ----- From: "ahoward" Newsgroups: comp.lang.ruby To: "ruby-talk ML" Sent: Tuesday, June 17, 2003 2:26 PM Subject: Re: [RCR] Array#push(empty array expanded) => no exception > > > > Simon Strandgaard wrote: > > > >> Can it be made legal to push/unshift with zero arguments ? > > > > > > > > Already fixed in (later) versions of 1.8 > > guess i eat my words - not the first time... > If you think about it, it makes sense. For one thing, what if a variable is passed in? We don't want it to fail just because the array is empty. For another thing, consider what happens with strings. foo = "value" + "" should not be illegal, I think. Hal