6 ms·
Something I'd observe here: without expressing an opinion about PEGs vs regexes, I'd note that regexes are much more widely used. They're also completely suffic
by nrclark 4mo ago
Something I'd observe here: without expressing an opinion about PEGs vs regexes, I'd note that regexes are much more widely used. They're also completely sufficient for an awful lot of text processing tasks. PCRE regexes would be a great inclusion to the stdlib, and would probably be popular.
- xigoi 4mo ago> PCRE regexes would be a great inclusion to the stdlib Why? Anything that can be done with a regex can also be done with a PEG, and the PEG will be much more readable.
- nrclark 4mo agoPEGs are a great replacement for a complicated regex, and can express a lot of things that are hard to do with a regex. But they're also more verbose, and fewer developers are familiar with their usage. PCRE regex is kind of the lingua franca of text-matching, and making it available would be helpful for newcomers imo.