[Python-ideas] New pattern-matching library (was: str.split with multiple individual split characters)

Nick Coghlan ncoghlan at gmail.com
Tue Mar 1 10:50:44 CET 2011

On Tue, Mar 1, 2011 at 9:19 AM, Mike Meyer <mwm at mired.org> wrote:
> I disagree. Fully general string pattern matching has a few
> fundamental operations: sequence, alternation, and repetition.

I agree that the fundamental operations are simple in principle.

However, I still believe that the elaboration of those operations into
fully general pattern matching is a complex combinatorial operation
that is difficult to master. regex's certainly make it harder than it
needs to be, but anything with similar expressive power is still going
to be tricky to completely wrap your head around.


P.S. I'm guessing this is the Icon based library you mentioned in the
original message:

Certainly an interesting read.

Nick Coghlan   |   ncoghlan at gmail.com   |   Brisbane, Australia

More information about the Python-ideas mailing list