Front page | perl.perl5.porters |
Postings from April 2010
Re: package block syntax
Thread Previous
From:
David Golden
Date:
April 27, 2010 13:49
Subject:
Re: package block syntax
Message ID:
u2w5d4beb41004271349i997b9798n7c6c7363fcab19e9@mail.gmail.com
On Tue, Apr 27, 2010 at 4:42 PM, Tom Christiansen <tchrist@perl.com> wrote:
>> On Tue, Apr 27, 2010 at 4:24 PM, Zefram <zefram@fysh.org> wrote:
>>> The attached patch implements a Perl 6ism that seems worth imitating:
>>> "package Foo { ... }" is equivalent to "{ package Foo; ... }". =C2=A0I th=
>>ink
>>> this is worthwhile. =C2=A0I'm posting it for discussion, not for immediat=
>>e
>>> application, but if the consensus is in favour then this patch should
>>> be usable as-is.
>
>>Could we call it "class" instead?
>
> Not if Perl6 looks for a first token of "package" to mean the
> module is Perl5 source code and for a first token of "class" to
> mean that the module is Perl6 source code.
I was making a reference -- apparently too subtle -- to
http://perl.markmail.org/thread/drg2yammkzdmjcb7 and the related crap
storm.
-- David
Thread Previous