lua-users home
lua-l archive

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


On 25 November 2010 17:20, Axel Kittenberger <axkibe@gmail.com> wrote:
> I'm against do for lamdas, since it is actually the very contrary.
> Nothing is done / executed here, but a code is constructed to be done
> later.

On the other hand:

  array:foreach(do return a = a * a)

...sort of makes sense, when you read it.

In fact is the common case for lambdas not that they are code to be
executed (relatively) "now"? Normal functions and methods on the
contrary are to be called later, for sure.

Matthew (who likes the concept of "relatively now", now...)