lua-users home
lua-l archive

Re: Lambda (was Re: special forms, take two (was Re: A lua version of "amb"))

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


> Actually the 'make a field extractor for foo' is a good example of how
> sometimes a little lambda is easier to write and read than a library
> function.
>
Given Lua's indulgence to all those Fortran programmers out
there, what about good old "arithmetic statement functions" for
a lightweight syntax? In this case:
foo(x) = x.foo
Since it's not anonymous, even I would use it …

AltStyle によって変換されたページ (->オリジナル) /