in reply to Re: Should Test::Most import strict and warnings?
in thread Should Test::Most import strict and warnings?
These modules which enable strict for the caller reduce the number of modules which appear to use strict, which can send the wrong message to/confuse people who are learning perl by reading this code which has strictures enabled but does not advertise the fact by including "use strict".
If you apply that argument fully, you have to argue against any module which performs non-obvious changes to calling packages through import(), including autodie and perl5i and (probably) utf8.
You probably also have to ignore the line in the Modern::Perl documentation which says "Don't use this in your own CPAN modules; there are better ways to enforce this mechanism."
Me, I think it's more important to teach novices how to understand code than to coddle them into some sort of ignorant pseudo-understanding based on skimming it and guessing at what it does. perldoc should be ready at hand.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Should Test::Most import strict and warnings?
by duelafn (Parson) on Feb 08, 2010 at 18:01 UTC | |
by chromatic (Archbishop) on Feb 08, 2010 at 21:00 UTC | |
by educated_foo (Vicar) on Feb 09, 2010 at 02:21 UTC | |
by chromatic (Archbishop) on Feb 09, 2010 at 06:20 UTC | |
by educated_foo (Vicar) on Feb 10, 2010 at 03:11 UTC | |
by Anonymous Monk on Feb 11, 2010 at 17:20 UTC | |
by educated_foo (Vicar) on Feb 20, 2010 at 07:41 UTC |