bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: new module 'regex-quote'


From: Bruno Haible
Subject: Re: new module 'regex-quote'
Date: Tue, 21 Sep 2010 02:07:44 +0200
User-agent: KMail/1.9.9

Reuben,

> Heh. My point precisely: 3 functions and 50 lines versus 1 flag and 5
> lines (RE_PLAIN) to solve the same problem

I agree that if we had the opportunity to invent regex APIs from scratch
now, all 4 syntaxes (literals, wildcards, basic regular expression, extended
regular expression) would be worth supporting equally.

But the fact is that POSIX standardizes the regex API, and therefore there
is a border between "in glibc" and "outside glibc". Functionality in glibc
is available at no cost; functionality outside glibc requires additional
link options and increased startup time or a 50KB bigger executable.

Bruno



reply via email to

[Prev in Thread] Current Thread [Next in Thread]