develooper Front page | perl.perl5.porters | Postings from June 2014

RFC: Support for new warning categories outside of "all"

Thread Next
Ævar Arnfjörð Bjarmason
June 22, 2014 09:43
RFC: Support for new warning categories outside of "all"
Message ID:
I've just pushed smoke-me/avar/warn-grep-void-ctx which adds support
for adding new warnings that aren't enabled by "use warnings", but
rather by e.g. "use warnings qw(pedantic)". See

These warnings are still turned on by -W on the command-line, and I
haven't yet updated any of the docs to be less confusing
in the face of this change.

But this I think is a viable way forward to bring controversial
warnings into the core without making it a pain to run existing code
on new perl versions. To that end the patch brings back a warning that
was removed from blead already over objections about it not belonging
in the default set of warnings.

Hopefully it and other similar warnings will cause no such objections
when authors have to explicitly opt-in to view them.

Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About