[fpc-devel] Delphi anonymous methods
Alexander Klenin
klenin at gmail.com
Mon Mar 4 16:13:27 CET 2013
On Tue, Mar 5, 2013 at 1:49 AM, Sven Barth <pascaldragon at googlemail.com> wrote:
>> The use of "as" is based on an idea of mine. C# for example has "=>" and
> Oxygene has "->" which I didn't consider much Pascal like. Also the compiler
> needs to know the type of the lambda so it can correctly typecheck its code
> (after all we have no type inference (yet :P )). So "lambda PROCVARTYPE as
> EXPR/STMT" came as the most "natural" and Pascal like variant.
Alternatively, we can consider to use "is" -- it even has precedent in Ada:
http://en.wikipedia.org/wiki/Ada_(programming_language)#.22Hello.2C_world.21.22_in_Ada
--
Alexander S. Klenin
More information about the fpc-devel
mailing list