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

Re: Indented here docs?

Thread Previous | Thread Next
July 10, 2016 21:03
Re: Indented here docs?
Message ID:
On Sun, Jul 3, 2016 at 3:28 PM, Matthew Horsfall (alh)
<> wrote:
> So far, it seems the changes I must make are:
>   * Switch ~ to -

Holding off on this as I don't think we have consensus on this point yet.

Previously we thought ~ might be easier since we couldn't find cases
where <<~EOF would compile, then mauke discovered one, so now ~ has
the same problem as -.

>   * Guard memEQ and ninstr appropriately

Done. I think.

>   * Rework PL_tokenbuf logic slightly (maybe I can do PL_tokenbuf +1
> instead of shifting everything over)


>   * Fix this silly bug:
>   perl -e 'print <<~EOF;'
>   Can't find string terminator "OF" anywhere before EOF at -e line 1.


>   * Rework shareable code to static functions then modify the rest of
> scan_heredoc to also support the new syntax

The rest of scan_heredoc supports the new syntax, but I didn't combine
any code into static functions as it seemed to be unique enough for
the different cases.

>   * Tests for <<-`...`


>   * Convert warning to a fatal error


>   * Update perldiag/pod/etc..


It seems we're still up in the air about if this needs to be a feature
or not, and even if we want to get rid of bare <<. I don't think this
feature can be completed and merged until we've decided.

What can I do to help with this decision making?


-- Matthew Horsfall (alh)

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