[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Re: Re: Lightweight syntax: a dissident view
- From: Luis Carvalho <lexcarvalho@...>
- Date: Wed, 24 Nov 2010 11:07:51 -0500
> > filter(lambda(x) x % 2 == 0)
>
> hmm also some uses not claerly defined, not nice:
>
> myfunc(lambda(x) x, x)
>
> is this:
> myfunc(function(x) return x, x end)
> or
> myfunc(function(x) return x end, x)
> ?
Second option; actually, what I was proposing was more like
lambda `(' [par] `)' exp
but to avoid the ambiguity we could add a final token
lambda `(' [parlist] `)' explist end
albeit with a marginal gain over 'function'...
Cheers,
Luis
--
Computers are useless. They can only give you answers.
-- Pablo Picasso
--
Luis Carvalho (Kozure)
lua -e 'print((("lexcarvalho@NO.gmail.SPAM.com"):gsub("(%u+%.)","")))'