[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Pattern matching proposal: %B to match balanced string with specified escape
- From: Nagaev Boris <bnagaev@...>
- Date: Tue, 12 Jan 2016 10:58:39 +0300
On Tue, Jan 12, 2016 at 9:19 AM, Dirk Laurie <email@example.com> wrote:
> 2016-01-11 23:42 GMT+02:00 Matthew Wild <firstname.lastname@example.org>:
>>> OK. But what are the chances of this being added to stock Lua in the
>>> next version?
>> Based on the number of patches enthusiastically posted to this list,
>> and the number that ever get in - I'd say the answer is "very low".
> Jonathan's suggestion is merely a change to a library, not
> to core Lua. In such a case, there is an alternative route to
> respectability: contribute a module to LuaRocks. Let's say that
> the module 'jgstring' returns a function that monkey-patches
> the string library, saving the original functions in string.orig.
> Once that is installed, it is a matter of
I would prefer if that module returned new function string.match
without changing any globals.