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
_______________________________________________
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel

Reply via email to