Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical

Re: what would you like to see in perl5.12?

by FunkyMonk (Canon)
on Aug 19, 2007 at 22:23 UTC ( #633675=note: print w/replies, xml ) Need Help??

in reply to what would you like to see in perl5.12?

strict and warnings on by default.

Replies are listed 'Best First'.
Re^2: what would you like to see in perl5.12?
by educated_foo (Vicar) on Aug 09, 2008 at 19:15 UTC
    Ugh. If you're writing enough code for strict and warnings to be useful, then adding "use strict;\nuse warnings;\n" to the top shouldn't be too hard. Fortunately, the people who have enough skill to modify the Perl core don't share your opinion.
Re^2: what would you like to see in perl5.12?
by EvanCarroll (Chaplain) on Aug 19, 2007 at 22:28 UTC
    Also taken care of with my Moose suggestion.

    Evan Carroll
      And does Moose magically turns on strict and warnings in all packages used by your script?

      I'd like to see strict and warnings on by default, but it ain't going to happen. It would break too much Perl code, including that on CPAN.

        No, it doesn't and it just as well shouldn't, but could. I like strict and warnings in use in my code, because it means I'm less likely to create a maintenance nightmare for myself. But as far as other peoples code, they can create as much of a maintenance nightmare for themselves as their heart desires. ;)

        Just add a use Moose; at the top if your script and you too can have strict and warnings on by default for whatever package you're in. The next logical question that I'm at, is if Moose further cuts down dev/maintenance time how too can I avoid this redundant step of useing it. There isn't an easy answer that will allow you to maintain backwards compatibility but shipping Moose as a core module would make widespread development a reality.

        Evan Carroll

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://633675]
[Discipulus]: ah Corion you are where thatched roof are? good for you
Discipulus greeting from Dumbar?
Discipulus Umbar..

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (12)
As of 2017-11-23 09:32 GMT
Find Nodes?
    Voting Booth?
    In order to be able to say "I know Perl", you must have:

    Results (333 votes). Check out past polls.