lua-users home
lua-l archive

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


"Juris Kalnins" <juris@mt.lv> writes:

> There was a nice proposal in another message,
> Luiz Henrique de Figueiredo <lhf@tecgraf.puc-rio.br> wrote:
>> And one possible syntax could be
>> 	function (x,y,z)=x+y*z
>
> function (x,y,z = x+y*z), which doesn't have issues with finding
> expression end would be even nicer.

And both are an entire token shorter than what we have now.  And the
latter looks only a little bit like initialized function arguments.

And the former only a little bit like an assignment.

And I look only a little bit exasperated.

-- 
David Kastrup