[fpc-devel] New feature discussion: LAMBDA

Jeff Wormsley daworm10 at comcast.net
Tue Oct 20 19:42:58 CEST 2009


Michael Schnell wrote:
> Again something inspired by Delphi-Prism ?
>
> ( http://prismwiki.codegear.com/en/Lambda_Expressions )
Wow, talk about unreadable code...

I'm all for saving typing, but not at the expense of readability.  This 
reminds me of C's oddball ? operator.  One of the reasons I like Pascal 
is that you do usually have to spell out what you are doing.  It makes 
reading the code months or years later, or reading someone else's code 
much easier.  So it might not be the most efficient in terms of typing, 
or even compilation or execution, but the savings in maintenance more 
than make up for it.  The examples given at that site would drive me 
crazy.  I don't believe I'll be using Prism any time soon.

Jeff.
--
I haven't smoked for 3 years, 2 months and 3 days, saving $5,222.69 and 
not smoking 34,817.99 cigarettes.



More information about the fpc-devel mailing list