lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


It was thus said that the Great Coroutines once stated:
> 
> PS: Please don't just reply "You can do this with gsub()!"  I contend
> that it can be natural to use either approach, depending on the
> situation.  Sometimes the functional form of gsub() makes sense,
> sometimes I feel like this would look cleaner (and be faster over
> invoking the pattern matching facilities of gsub).

  Okay, I'll refrain from saying "You can do this with gsub()!" and instead
say, "You can do this with LPeg!" [1]

  -spc (On second thought, let me say "You should do this with LPeg!")

[1]	You do know that LPeg generates code for a parsing-engine VM?