On Dec 3, 2013 10:08 AM, "Erik Christiansen" <dva...@internode.on.net>
wrote:
>
> On 02.12.13 19:41, Marc Weber wrote:
> > > I do not remember clearly, but was not it suggested to take PCRE
syntax? I
> > > do not remember any discussions suggesting taking PCRE and replacing
parser
> > > code, but I may have missed something.
> > I don't remember wether it was public. Facts: PCRE is fast, it already
> > implements what Bram had in mind, it even has JIT support.
> > But yes, it would be PCRE syntax, too. (Is this good or bad?).
>
> Bad, I suggest.
> Posix EREs are powerful, and standard across many utilities.
> What is important here is that a new regex dialect need not be learnt
> for every utility we use. Productivity results from leveraging learning
> across tools.

Vim syntax looks like BRE (*not* ERE) on steroids unless you use very magic
modifier at the start of regex. It looks like nothing else if you do. It is
vim who has unique syntax.

PCRE has a bunch of similarities with ERE (nearly any ERE regex can be used
without modifications with PCRE) and is pretty common: Perl 5, Python,
Ruby, go, PHP, grep (if build with PCRE support and provided -P switch),
zsh (if build with PCRE support and some options enabled or specific
comparison switch is used).

Note that neither Python nor Perl are actually using PCRE: Python just
borrowed the syntax and Perl is where PCRE borrowed syntax from. Do not
know which of the other languages I mentioned with PCRE-like regex syntax
are actually using PCRE.

Thus by bringing this argument you contradict yourself: if you want to
leverage learning across utilities you must use PCRE.

> Erik
>
> --
> The Kyoto Protocol, drafted in 1997, aimed to reduce the world's
greenhouse gas
> emissions by around five per cent from 1990 levels by the end of 2012.
> Instead, global greenhouse gases have risen around 58 per cent in that
time.
>  -
http://www.abc.net.au/news/2012-12-08/troubled-un-climate-talks-spill-over/4416696
>
> --
> --
> You received this message from the "vim_use" maillist.
> Do not top-post! Type your reply below the text you are replying to.
> For more information, visit http://www.vim.org/maillist.php
>
> ---
> You received this message because you are subscribed to the Google Groups
"vim_use" group.
> To unsubscribe from this group and stop receiving emails from it, send an
email to vim_use+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.

-- 
-- 
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to vim_use+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to