lua-users home
lua-l archive

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


On Fri, Sep 24, 2010 at 4:14 PM, Javier Guerra Giraldez
<javier@guerrag.com> wrote:
> instead of:  "xxx" is a constant, and "xx%d" is a match pattern, do:
> "xxx" is a constant and tamale.M("xx%d") is a match predicate (a
> closure that takes the target element and returns true or false).

This makes sense. It is all too easy to include a magic character in a
string, suddenly changing the semantics totally.  We are _used_ to
this in Lua, but it does bite people.

steve d.