lua-users home
lua-l archive

Re: Another example for syntactically lightweight closures

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


Asko Kauppi <askok@dnainternet.net> writes:
> 	yyy=	do =something end
> 	xxx= 	do(a,b) =a+b end
> 	zzz= 	do(a,b,c) if a then =b else =c end end
To be blunt: yuck.
People keep trying to re-use do...end as a "svelte lambda" notation, and
it _just isn't working_. It's essentially no more readable or concise
than the current syntax.
It's becoming pretty clear (to me) that keyword-oriented syntaxes (like
the above) simply don't work well for a notation intended for embedding
inside expressions or use as one-liners.
-Miles
-- 
Apologize, v. To lay the foundation for a future offense.

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