Subject: | Make compile-time warnings fatal |
I'm enjoying using Modern::Perl and its automatic enabling of warnings
and strict. One more thing to consider for a future version is to
upgrade compile-time warnings to fatal errors:
use warnings FATAL => 'syntax';
My understanding is that these are essentially syntax errors in the
program, but to avoid breaking older code the parser defaults to
whatever older versions of perl used to do, and emits a warning. Unlike
run-time warnings, it is easy to find and fix all of these at once.
If 'Modern Perl' exists as a dialect of Perl, it should exclude peculiar
ambiguous constructs, even if for backwards compatibility the perl
implementation will carry on with a warning.