-
Notifications
You must be signed in to change notification settings - Fork 561
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
'-Dusedefaultstrict` is premature; recommend removal #18872
Comments
Let's see if we can get the upstream CPAN distributions all strict-clean first. I'll ask Aristotle to do a release of Text-Tabs+Wrap and if that's good, to then do a PR with his changes. |
It will also need to #18662 for The real challenge is making |
Update: @ap has said he'll get Text-Tabs+Wrap in good strict/warnings shape in the near, but not immediate, future. |
While I wouldn't dream of turning on |
The problem is that I don't see how we can, in good conscience, ship a version of perl that offers a configuration option that will not currently pass the core distribution's own test suite. |
I think your conscience should be clear if that fact is clearly documented; with far less concern we regularly ship perls that don't pass all tests on some platforms. |
On Mon, Jun 14, 2021 at 9:48 AM James E Keenan ***@***.***> wrote:
While I wouldn't dream of turning on usedefaultstrict in production, I do think it would be a very useful thing indeed on one of my CPAN-testing perls.
The problem is that I don't see how we can, in good conscience, ship a version of perl that offers a configuration option that will not currently pass the core distribution's own test suite.
Why do you opt to remove it instead of fix it?
…-- Matthew Horsfall (alh)
|
I don’t see a problem with shipping the option now even without a big caution sign in the documentation (re @hvds) – that would only be necessary if users were being invited and excited to try the new shiny. But that would be silly. There’s no reason perldelta has to shout it from the rooftops right away. Just ship it low-key in the footnotes as experimental for the curious to play with; only advertise it loudly and to everyone (again) later once it’s known to work – even if it’s not strictly speaking a new feature in that release. IMO. |
It’s out. |
Inspired by @rjbs's talk at the Perl Conference today, I decided to see what happens when you configure with
-Dusedefaultstrict
.This looked familiar.
When @atoomic and I were working on Sawyer's "Perl 7" proposal last year, we came to a point where Nico had flipped the bit that turned strictures on by default. We then had to proceed systematically to get
make
to complete, thenmake test_prep
, and finally the whole test suite withmake test_harness
.Several hundred commits and person-hours later ... we achieved that objective. (One then, of course, faces the challenge of getting CPAN code and darkpan code to run with strictures on by default.)
But until such time as we're willing to invest that time and effort, I don't see the point of offering the
-Dusedefaultstrict
configuration option in a production release ofperl
. We should remove it from blead and confine it to a branch.Thank you very much.
Jim Keenan
The text was updated successfully, but these errors were encountered: