in reply to Re^3: Five Features Perl 5 Needs Now
in thread Five Features Perl 5 Needs Now
instead ofclass FOO { BLOCK }
It won't even save you on keystrokes; 'class' can clash with an existing subroutine, so you'd need a 'use feature' to actually use it.{ package FOO; BLOCK }
And "it's just syntax" means that there's no addition semantics in the BLOCK. Rafael said it would be more worthwhile if the BLOCK had additional properties; methods for instance (with compile time lookup, and not callable as subs).
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Five Features Perl 5 Needs Now
by chromatic (Archbishop) on Dec 19, 2008 at 18:29 UTC |