Am 04.03.2013 16:13, schrieb Alexander Klenin:
On Tue, Mar 5, 2013 at 1:49 AM, Sven Barth <pascaldra...@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
Would indeed be a nice idea as well :)
Regards,
Sven
_______________________________________________
fpc-devel maillist - fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel