[fpc-devel] Delphi anonymous methods

Alexander Klenin klenin at gmail.com
Tue Mar 5 14:50:01 CET 2013


On Wed, Mar 6, 2013 at 12:27 AM, Sven Barth <pascaldragon at googlemail.com> wrote:
> I don't know why the one who first implemented them chose them, but now the
> reason is backwards compatibility.
>
> Please note that I wouldn't have choosen round brackets either (potential
> conflicts with type casting)

Is not "specialize" keyword there to prevent exactly this?

> specialize SomeType with (Something)

I would like to propose a modification to one of the principles we brought up
in this thread: "prefer keywords to punctuation ... but not to the
point of becoming COBOL" :)

-- 
Alexander S. Klenin



More information about the fpc-devel mailing list