-
Notifications
You must be signed in to change notification settings - Fork 571
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
pack/unpack should warn about redundant arguments #13950
Comments
From @avarCreated by @avarSimilarly to https://rt-archive.perl.org/perl5/Ticket/Display.html?id=121025 which $ perl -wE 'say pack "AA", qw(x y z)' Perl Info
|
From @TuxOn Sat, 21 Jun 2014 07:06:25 -0700, Ãvar Arnfjörð Bjarmason (via RT)
I think I don't like new warnings for this.
This is something else. I don't know if I use it, but I can understand -- |
The RT System itself - Status changed from 'new' to 'open' |
From @avarOn sun 22 jún 00:02:13 2014, hmbrand wrote:
We had much of this same discussion in RT #121025, this is a particularly pertinent reply: https://rt-archive.perl.org/perl5/Ticket/Display.html?id=121025#txn-1276663 Last night I was hacking on a patch to split warning categories out of "all", i.e. so you could write: # Does not warn: If I hacked up this pack stuff I was going to just add it to the default set if it was early enough in the 5.21.* series (similar to the redundant printf warning now in blead, see 4077a6b), depending on how it's received we could then split it off into a non-default category. Having non-default categories would allow us to discuss "is this warning useful in some cases" separately from "should this warning be retroactively enabled for all code that now uses 'use warnings'". E.g. I was working on bringing the warning about grep in void context back as an optional "pedantic" warning, it was already pulled out of blead (see http://www.nntp.perl.org/group/perl.perl5.porters/2007/12/msg131922.html) in 2007 because it was deemed too noisy to be there by default, but there's no reason not to have it there as an explicit opt-in. |
From @avarOn sun 22 jún 01:18:42 2014, avar wrote:
That facility is now pushed as smoke-me/avar/warn-grep-void-ctx. |
Migrated from rt.perl.org#122151 (status was 'open')
Searchable as RT122151$
The text was updated successfully, but these errors were encountered: