[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: [Proposal] Allow yields through string.gsub
- From: Sean Conner <sean@...>
- Date: Wed, 6 Apr 2016 13:41:02 -0400
It was thus said that the Great Dirk Laurie once stated:
> 2016-04-06 18:41 GMT+02:00 Soni L. <firstname.lastname@example.org>:
> > 1. Let coroutines be used for fast dynamic substitution, something we
> > currently can't do.
> Can't we do it with lpeg?
I'm not sure about the "dynamic" bit, but the issue with LPeg is that once
it starts running, it can't be interrupted (at least, from within Lua---it
can certainly be interrupted by some external source) and from what I can
see, Soni wants the ability to yield arbitrarily.