in reply to Re^4: Trying to make perl suck less again
in thread Trying to make perl suck less again
Given that the whole point of the feature pragma is to require explicit enabling of stuff that is likely to break existing code, I really don't see automatically enabling it in Moose.$ perl5.10.0 -w sub when { use POSIX "strftime"; strftime("[%Y-%m-%d %H:%M:%S] ", gmti +me) } warn when, "some warning"; __END__ [2007-12-23 20:51:11] some warning at - line 2. $ perl5.10.0 -w use feature ":5.10"; sub when { use POSIX "strftime"; strftime("[%Y-%m-%d %H:%M:%S] ", gmti +me) } warn when, "some warning"; __END__ syntax error at - line 3, near "warn when" Execution of - aborted due to compilation errors.
What happens when 5.12 comes out? Do you switch to enabling ":5.12" features? How many hundreds or thousands of modules do you hope will be using Moose by then?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
| A reply falls below the community's threshold of quality. You may see it by logging in. |