Re: Pattern matching proposal: %B to match balanced string with specified escape
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: Pattern matching proposal: %B to match balanced string with specified escape
- From: steve donovan <steve.j.donovan@...>
- Date: 2016年1月12日 10:47:03 +0200
On Tue, Jan 12, 2016 at 10:13 AM, Jonathan Goble <jcgoble3@gmail.com> 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.
steve d.