[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Another example for syntactically lightweight closures
- From: Miles Bader <miles.bader@...>
- Date: Thu, 07 Feb 2008 17:05:20 +0900
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.