develooper Front page | perl.perl5.porters | Postings from December 2008

Re: [PATCH] Class as a Feature (take four)

Thread Previous | Thread Next
From:
Rafael Garcia-Suarez
Date:
December 15, 2008 14:24
Subject:
Re: [PATCH] Class as a Feature (take four)
Message ID:
b77c1dce0812151424t7569bb36nfc409e9c35054d13@mail.gmail.com
2008/12/15 chromatic <chromatic@wgz.org>:
> I give up.  Now you have to say one of:
>
>        use feature 'class';
>        use 5.011;
>
> ... to enable this feature.  While it's *possible* to make this code work by
> default in the face of all of that DarkPAN code which passes single-element
> hash references to methods named 'class' in the dative form, it's very much
> not worth my time to do so (not that it was worth my time to work around Perl
> 4-era package separators, but it's a snow day).

Sorry if I come late to this discussion, but what is the grand plan ?
Surely a lone class keyword is not that useful ? The following has to
be considered :

* syntax extensions in the class{} block (for example default
strictures, method keyword...)
* class attributes (like inheritance, or final-ness à la final classes
of Java, just to name some examples)
* a 3rd idea that I haven't seen yet here... define defaults for
method attributes ? (at BEGIN or CHECK time) Or interact with the
compilation in one way or another

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