Re: What should /\08/ match and do?

[email protected] (demerphq)
Newsgroups perl.perl5.porters
Message-ID <[email protected]>
On 1 June 2010 19:05, Eric Brine <[email protected]> wrote:
> On Tue, Jun 1, 2010 at 6:45 AM, demerphq <[email protected]> wrote:
>>
>> IMO these days octal, and any other non parenthesized code-like
>> escapes should be deprecated.
>
> A stylistic warning in ambiguous cases (like Abigail's "/\08/ interpreted as
> /\x{00}8/" warning) sounds like a good idea, but not a *deprecation*
> warning. That would mean we're planning on removing octal support from Perl,
> and I haven't heard any reasons for doing that. Does supporting octal
> escapes cause maintenance problems?

Any non-parenthesized escape structure using numeric values is a
maintenance problem when seen from the point of view of modifying or
joining snippets of a regex together.

cheers,
Yves


-- 
perl -Mre=debug -e "/just|another|perl|hacker/"
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.