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

Re: Maybe only partially deprecate

Thread Previous | Thread Next
Father Chrysostomos
May 25, 2016 20:05
Re: Maybe only partially deprecate
Message ID:
Aristotle wrote:
> * Father Chrysostomos <> [2016-05-23 00:11]:
> > 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 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 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 from the core, except to
give somebody more work to do. itself is not deprecated per se, but only its use on perl
versions in which the underlying functionality is deprecated.  Until drops support for 5.22, can continue to be
shipped with it, and, consequently, with perl.  Anything else is more
work than necessary.

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About