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

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

Thread Previous | Thread Next
Rafael Garcia-Suarez
December 16, 2008 00:28
Re: [PATCH] Class as a Feature (take four)
Message ID:
2008/12/16 chromatic <>:
> Imagine if had existed in the days of 5.6.0, and the only way to
> get lexical filehandles was to say something like:
>        use 5.006;
>        use feature 'lexical_filehandles';

That's not a good example -- lexical filehandles are a syntax
addition, not a keyword addition.

Likewise, using "my $_", ~~ or // doesn't need "use feature" in 5.10.
There is usually enough context and dwimmery built-in to avoid
confusing ~~ with a doubled unary ~ or the defined-or with an empty

I think the only keyword added in 5.6 was lock, and it wasn't a proper
keyword. But weak keywords are a pain for writing maintainable
programs, because they are affected by action at distance. I see as an improvement over weak keywords.

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