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

Re: Maybe only partially deprecate encoding.pm?

Thread Previous | Thread Next
From:
Father Chrysostomos
Date:
May 25, 2016 20:05
Subject:
Re: Maybe only partially deprecate encoding.pm?
Message ID:
20160525200522.15618.qmail@lists-nntp.develooper.com
Aristotle wrote:
> * Father Chrysostomos <sprout@cpan.org> [2016-05-23 00:11]:
> > encoding.pm has a Filter option which, instead of hooking the upgrad-
> > ing of strings, simply runs the source of the file through a decoding
> > source filter and does an effective 'use utf8'. This option actually
> > makes sense and follows a sane model.
> 
> Does it offer anything you can’t do with some other source filter helper
> module?

I do not know of any other source filter module that provides this.
If we are going to stop ${^ENCODING} from working, it might be a
good idea to provide such a source filter module in core.  And, hey,
we have one.  If that were not so, I would have proposed one instead.
That's the real reason for this thread.

(Similarly, I think it was a Bad Idea for 5.10 to ship with $* dis-
abled, but with no replacement.  The latter did not arrive until
5.14.0 provided use re '/flags'.)

> I have no idea what has been done about it, but I’ll note that there are
> two separate issues, which may (I don’t know) be getting conflated here,
> because of the unfortunate confusion of terminology for module removals.
> 
> One is deprecation in the sense of “we will stop shipping this in core,
> if you need it then please install it from CPAN from now on”.
> 
> Another is deprecation in the sense of “this will stop working at all,
> please change your code accordingly”.
> 
> The latter applies to ${^ENCODING} alone, the former to encoding.pm as
> a whole. And if you are talking about ${^ENCODING} alone, then I agree.
> But the plan to remove it from core ought to proceed apace.

The main reason the removal from the core was brought up was in
response to the complaints about how broken encoding.pm is, specific-
ally because of how broken ${^ENCODING} is.  Hence, perhaps it was not
thought through.

Maybe I should have said this at the time, but I do not think we
accomplish anything by removing encoding.pm from the core, except to
give somebody more work to do.

encoding.pm itself is not deprecated per se, but only its use on perl
versions in which the underlying functionality is deprecated.  Until
Encode.pm drops support for 5.22, encoding.pm can continue to be
shipped with it, and, consequently, with perl.  Anything else is more
work than necessary.


Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About