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

Re: Indented here docs?

Thread Previous | Thread Next
Kent Fredric
July 17, 2016 13:55
Re: Indented here docs?
Message ID:
On 18 July 2016 at 01:20, Matthew Horsfall (alh) <> 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?


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


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 = <<;


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.



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