[sf-perl] Perl 5.12
Shlomi Fish
shlomif at iglu.org.il
Mon Apr 5 20:12:52 PDT 2010
On Tuesday 06 Apr 2010 01:36:09 Dana Diederich wrote:
> That leads to another interesting line; what kind of 'boiler-plate'
> use statements do y'all use in most of your programs? This is what I
> always use:
> use common::sense;
> use Moose::Autobox;
>
Well, since you asked - it varies. My gvim is configured to add "use strict;"
and "use warnings;" to all the scripts , and the package statement too to my
packages. I'm using "use Moose;" if I'm writing Moose modules, but not all of
my modules are based on Moose (in order to avoid extra deps, to reduce memory
consumption, and because they don't depend on the more advanced Moose
features). Sometimes I'm using <<use base 'Class::Accessor';>> and then the
__PACKAGE__->mk_accessors, or the equivalent for Class::XSAccessor (ultra-fast
accessors written in C).
So I guess my greatest common dividor is still only strict and warnings.
Regards,
Shlomi Fish
> Cheers,
> -Dana
>
> On Mon, Apr 5, 2010 at 3:12 PM, Paul Makepeace
>
> <Paul.Makepeace at realprogrammers.com> wrote:
> > On Mon, Apr 5, 2010 at 14:55, Fred Moyer <fred at redhotpenguin.com> wrote:
> >> Heard that Perl 5.12 is nearing final release. Here's a link to the
> >> current perldelta. Some interesting new features like strictures are
> >> enabled by default.
> >
> > I interpreted that to mean "use strict;" is on by default and thought
> > "holy cow".
> >
> >> http://search.cpan.org/~jesse/perl-5.12.0-RC3/pod/perl5111delta.pod
> >
> > However I don't see anything in there that's remotely like that; just
> > that deprecated language features get a warning. Is that what you
> > meant?
> >
> > Paul
> > _______________________________________________
> > SanFrancisco-pm mailing list
> > SanFrancisco-pm at pm.org
> > http://mail.pm.org/mailman/listinfo/sanfrancisco-pm
>
> _______________________________________________
> SanFrancisco-pm mailing list
> SanFrancisco-pm at pm.org
> http://mail.pm.org/mailman/listinfo/sanfrancisco-pm
--
-----------------------------------------------------------------
Shlomi Fish http://www.shlomifish.org/
What Makes Software Apps High Quality - http://shlom.in/sw-quality
Deletionists delete Wikipedia articles that they consider lame.
Chuck Norris deletes deletionists whom he considers lame.
Please reply to list if it's a mailing list post - http://shlom.in/reply .
More information about the SanFrancisco-pm
mailing list