develooper Front page | perl.perl5.porters | Postings from May 2010

Re: package block syntax

Thread Previous | Thread Next
Dave Mitchell
May 4, 2010 09:18
Re: package block syntax
Message ID:
On Mon, May 03, 2010 at 04:40:33PM +0200, Rafael Garcia-Suarez wrote:
> On 1 May 2010 18:59, Zefram <> wrote:
> > Attached patch is an updated version of my "package Foo { }"
> > implementation.  This fixes the SEGV in parser error recovery and adds
> > more tests.  No one has objected to the new syntax, and a few people
> > have expressed approval, so I think this can be applied.
> Jesse ? I'm not against this patch, but I'm not enthusiastic about it
> either. Do we want this syntactic sugar in ?

Personally I'm opposed to it. It doesn't particularly add anything
useful, but will of course introduce a whole new round of bugs and
edge cases to be teased out over the next few years. (This shouldn't be
perceived as specific criticism of the quality of this patch; its more a
general observation that *any* new feature will break perl in unexpected
ways, due to the complexity of perl and the weird ways in which all its
component parts interact, e.g. tieing, the debugger, introspection, XS etc

You never really learn to swear until you learn to drive.

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About