Front page | perl.perl5.porters |
Postings from July 2016
Re: Indented here docs?
Thread Previous
|
Thread Next
From:
wolfsage
Date:
July 10, 2016 21:03
Subject:
Re: Indented here docs?
Message ID:
CAJ0K8bjVh5QNCUZOHqSkedbP8J1XdO31dZ1e4FTJERODQ+co2g@mail.gmail.com
On Sun, Jul 3, 2016 at 3:28 PM, Matthew Horsfall (alh)
<wolfsage@gmail.com> 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)
Done.
> * Fix this silly bug:
>
> perl -e 'print <<~EOF;'
> Can't find string terminator "OF" anywhere before EOF at -e line 1.
Done.
>
> * 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 <<-`...`
Done.
> * Convert warning to a fatal error
Todo.
> * Update perldiag/pod/etc..
Todo.
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?
Thanks,
-- Matthew Horsfall (alh)
Thread Previous
|
Thread Next