[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: [ANN] tamale-1.2 - Erlang-style pattern matching library
- From: steve donovan <steve.j.donovan@...>
- Date: Fri, 24 Sep 2010 16:21:04 +0200
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.