Ilya Zakharevich wrote: > You are trading a frequently used shortcut @a == 1 + $#a for a > rarely-used-but-beautiful/intuitive semantic. I'm not sure it is a win. It's now boiling down to a matter of opinion and we'll have to agree to differ. Of course I use array arithmetic all the time as a heavy PDL user. > > Moveover, > > $x = 3 * @_; > > suddently being equivalent to > > $x = @_; > > does not look very promising... But would it not be easy to catch and warned by a p5tp6 converter? > No, you do not use "a special PDL array", you use "a vector". > A subtle change in wording - and no conflict. sure, but vector to me means 1D and also some sort of transformation properties whereas a PDL array is just a N-dim square container. anyway semantics - we call them 'piddles' which is moderately amusing but inelegant. > > This is true, but inelegant. If perl @x arrays are not considered useful > > why not get rid of them and always use references? > > Actually, this is what Perl is using internally (they are > softreferences==globs, but who cares?). Hmmmmmm KarlThread Previous | Thread Next