Re: colon (:) placeholders and array slices
[email protected] (Tim Bunce) Thu, 8 May 2014 12:20:47 +0100
| Newsgroups | perl.dbd.pg |
|---|---|
| Message-ID | <[email protected]> |
On Wed, May 07, 2014 at 12:53:39PM -0400, Graham Ollis wrote: > > This is related to rt#95173, a bug I opened last week, which can be seen here: > > https://rt.cpan.org/Public/Bug/Display.html?id=95173 > > I would like to gauge how other interested parties might feel about this. I've replied on the ticket saying: Parsing the statement is a slippery slope I'd be very cautious of stepping onto. Requiring a space before a colon is a non-starter, I think. Only recognizing colons if they are followed immediately by letters ([a-zA-Z]) is about as far as I'd be comfortable going. (Note that I've phrased it that way on purpose. Syntax like [-2:-1] shouldn't be treated as a placeholder.) Tim.