develooper Front page | perl.perl5.porters | Postings from July 2009

Re: [PATCH] Remove implicit split to @_

Thread Previous | Thread Next
From:
Chip Salzenberg
Date:
July 9, 2009 21:28
Subject:
Re: [PATCH] Remove implicit split to @_
Message ID:
20090710042814.GR6500@tytlal.topaz.cx
This is an amusing discussion.

The only problem that I observe with scalar split writing to @_ implicitly
is that it's an easy thing to do by accident and is almost never useful.
Therefore, removing it seems a public service.

I favor simply making it a compile-time error to use split in scalar
context.  No problem with silently changing semantics and no more surprising
behavior.  Everybody's happy.  (right?)
-- 
Chip Salzenberg

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About