[fpc-devel] New feature discussion: LAMBDA

Michael Schnell mschnell at lumino.de
Wed Oct 21 09:40:00 CEST 2009


Jeff Wormsley wrote:
> Wow, talk about unreadable code...
> 

In fact I did not ever try to understand this. I just happened to  know
about Lambda in Prism and wanted to let the forum share that.

> I'm all for saving typing, but not at the expense of readability.  

Agreed.

> This
> reminds me of C's oddball ? operator.  

In fact I think that the ? operator in C is easily readable (But of
course in C you easily can create unreadable code by e.g. doing
assignments in if-clauses.
  if (a=b) a=1;

which happens to translate in Pascal as:
  a:=b;
  if a<>0 then a:=1;

-Michael



More information about the fpc-devel mailing list