[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: (kick,ass): => kick( ass ) ::
- From: Doug Rogers <doug.rogers@...>
- Date: Mon, 08 Feb 2010 09:11:41 -0500
steve donovan wrote:
> I like lhf's lambda-style proposal, e.g. \x,y(x+y) - has two
> advantages (a) it is absolutely explicit about what the expression
> scope is (and can also support multiple return values) and (b) it is
> easily implemented by token filters (e.g. using LuaMacro)
Not to mention that \ is suggestive of the lambda character.
I almost mentioned this form in my post. My initial gripe was that the
parentheses move from delimiting the arguments to delimiting the
expression, in contrast to the normal function definition form. But I
could get used to that. Really, I'm overly critical here. Expressions
may already be wrapped in parentheses anyway, and argument lists have a
very simple structure in this form - one cannot stick expressions
between '\' and '('. So, yes, this is a good solution.
> A first pass would be to patch the token filter patch so that it did
> not rely on the presence of a global 'FILTER' (that is, there was an
> API which would explicitly register callbacks.)
That's on my list of things to try - and perhaps splitting the two uses
of the FILTER call, as indicated in another thread. I installed the
token filter patch a number of times and I even began tweaking it, but
never finished the task.
I need to start trimming that list! Every time I start to do so, I'm
interrupted for some reason and the Lua world moves on without me.
For example, back in early '04 I wrote my own tasking interface
('threading' could be confused with coroutines in Lua's naming
convention!). According to comments I found in my code, I wasn't
satisfied with the POSIX implementation of LuaTask. My own library is
short and sweet - new(), post(), and read() with timeout. It allows
message passing via marshaling of Lua's simple data types. It worked
well enough for my own purposes initially, but I never developed the
code around it to replace our existing C test software. Other duties
summoned me. Now there are many more choices for multi-tasking under Lua.
And there are many of my own mostly-finished libraries and wrappers that
should be placed on LuaForge. But there's always home maintenance and
putting the kids through school, oh, and work. *sigh* So much fun, so
The information contained in this email transmission may contain proprietary and business
sensitive information. If you are not the intended recipient, you are hereby notified that
any review, dissemination, distribution or duplication of this communication is strictly
prohibited. Unauthorized interception of this e-mail is a violation of law. If you are not
the intended recipient, please contact the sender by reply email and immediately destroy all
copies of the original message.
Any technical data and/or information provided with or in this email may be subject to U.S.
export controls law. Export, diversion or disclosure contrary to U.S. law is prohibited.
Such technical data or information is not to be exported from the U.S. or given to any foreign
person in the U.S. without prior written authorization of Elbit Systems of America and the
appropriate U.S. Government agency.
- (kick,ass): => kick( ass ) ::, Pierre-Yves Gérardy
- Re: (kick,ass): => kick( ass ) ::, Mark Hamburg
- Re: (kick,ass): => kick( ass ) ::, Majic
- Re: (kick,ass): => kick( ass ) ::, joao lobato
- Re: (kick,ass): => kick( ass ) ::, Norman Ramsey
- Re: (kick,ass): => kick( ass ) ::, Doug Rogers
- Re: (kick,ass): => kick( ass ) ::, steve donovan