Re: Something wrong with str.reverse

2010-06-18 Thread Moritz Lenz
Richard Hainsworth wrote: > I dont think the specification regarding 'reverse' has ever changed. Actually it has changed. If my memory serves me right, .flip is not older than one or many one and a half years. The story is rather simple: In Perl we usually have one operator per operation. For exa

Re: Something wrong with str.reverse

2010-06-18 Thread Smylers
Moritz Lenz writes: > Richard Hainsworth wrote: > > > I dont think the specification regarding 'reverse' has ever changed. > > Actually it has changed. ... In Perl we usually have one operator per > operation. ... reverse() violated that principle, by doing several > different operations dependi

Re: Something wrong with str.reverse

2010-06-18 Thread Jan Ingvoldstad
On Fri, Jun 18, 2010 at 11:15, Smylers wrote: > > For the benefit of Perl 5 programmers used to string reverse it would be > nice to have a warning if reverse is invoked with exactly one string > argument (but not with an array which happens to contain a string as its > only element). > Perhaps

Re: Something wrong with str.reverse

2010-06-18 Thread Larry Wall
On Fri, Jun 18, 2010 at 11:21:52AM +0200, Jan Ingvoldstad wrote: : On Fri, Jun 18, 2010 at 11:15, Smylers wrote: : : > : > For the benefit of Perl 5 programmers used to string reverse it would be : > nice to have a warning if reverse is invoked with exactly one string : > argument (but not with a