Front page | perl.perl5.porters |
Postings from July 2016
Re: Indented here docs?
Thread Previous
|
Thread Next
From:
Kent Fredric
Date:
July 17, 2016 13:55
Subject:
Re: Indented here docs?
Message ID:
CAATnKFCPZUWAkPnBEt9s8O-pZVa4n3fGc9WBPn+C6V-frLaxZQ@mail.gmail.com
On 18 July 2016 at 01:20, Matthew Horsfall (alh) <wolfsage@gmail.com> wrote:
> We already have a syntax that works even if it's not the most ideal
> (<<~), so we don't *need* to rip out bare << now, right?
Agreed.
And *even* if we wanted to use <<- instead of <<~ ( and we don't ),
it still wouldn't matter in regards to this feature.
Because as far as I understand it, we can add either of those things
to implement this feature without fully removing
all usages of << , of which, a substantial majority *will not* be
written in the form
<<-WORD
<<~WORD
The deprecation message says we can remove those 2 things today from
their existing meanings(whatever they are) to repurpose it.
But as to deprecating the following:
my $foo = <<;
non-blankline
There is no *need* to remove that syntax at this time to pave the way
for the new feature.
There is existing code in the wild using bare <<, and there's
absolutely nothing mandating we break all that code today.
We're just breaking things for the sake of breaking things.
All the deprecation notice means here is "its on the chopping block,
so if we DO find a good reason to axe it because its blocking
something else, we can do that".
But that "something else" isn't here yet, so a broad spectrum axing is
simply premature.
--
Kent
KENTNL - https://metacpan.org/author/KENTNL
Thread Previous
|
Thread Next