[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Pattern matching proposal: %B to match balanced string with specified escape
- From: steve donovan <steve.j.donovan@...>
- Date: Tue, 12 Jan 2016 10:47:03 +0200
On Tue, Jan 12, 2016 at 10:13 AM, Jonathan Goble <firstname.lastname@example.org> wrote:
> The catch here is that in order to create a module containing my new
> functions (find, gmatch, and gsub in addition to match), I (assume)
> would have to copy-and-paste all of the pattern matching code, roughly
> 500 lines of code, into my new module, just to change about 10 to 15
> lines. That does not seem like a reasonable plan of attack.
I used to worry about this kind of thing, but realized that in the
21st century such anxiety is premature optimization. The extension
would really only be a few kB.