develooper Front page | perl.perl5.porters | Postings from May 2015

[perl #124349] Sys::Hostname::hostname warn on spurious arguments

Ricardo SIGNES via RT
May 26, 2015 12:08
[perl #124349] Sys::Hostname::hostname warn on spurious arguments
Message ID:
On Mon Apr 20 03:46:25 2015, wrote:
> I agree, it should throw an exception.
> I proposed the more timid alternative of just warning because I know
> that if it started throwing exceptions, existing and "working" code
> would break.
> So I imagined the cautious way forward was to warn for a release or
> two and start throwing exceptions at some point in the future.
> If the p5-porters are happy to take the bold approach of just dying on
> any argument passed to hostname(), I am all for it.

I'd be okay with just making it fatal, but I don't think it's in line with policy, and I don't think it's worth an exception.  Care to provide a patch that issues a deprecation-category warning on args to hostname?


via perlbug:  queue: perl5 status: open Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About