lua-users home
lua-l archive

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


On Thu, Nov 25, 2010 at 01:17:59PM +0200, steve donovan wrote:
> Does lambda x,y (x*(x+y)) feel unbalanced?  In its favour, it does
> make _longer_ expressions more visible
> 
>  lambda x,y,z (x+(x-2)*g(x,y,z-2*(x+y))-y*z)
> 
Is this really so much nicer than
  function(x,y,z) return (x+(x-2)*g(x,y,z-2*(x+y))-y*z) end
as to justify another keyword?

Dirk

(Not claiming originality — I'm sure someone else has already made 
exactly this point, but it seems to be forgotten by the pro-lightweight
debaters.  Actually, the whole thread reminds me a bit of the legendary
discussion leading to the design of Intercal.  Anyone else also on their
third beer?)