In our previous episode, Anthony Walter said:
> I'd say that the way FPC handles things different than Delphi in some cases
> is worse. Take generics, which you mentioned.

Worse or not is a personal matter of taste.

Keep in mind that the Delphi syntax (since essentially C++) was considered
too.
 
> type
>   generic TSomething<T> = class
> 
> is worse than
> 
> type
>   TSomething<T> = class
> 
> The only reason I can see having put the word "generic" in front of the
> identifier, something which Pascal has never done (put keywords in front of
> identifiers when declaring types), was to make it easier for the compiler
> author. That is to say, negate the need to look ahead.

And afaik that was indeed the main reason to do it this way. Short
lookaheads and as little ambiguity and context dependance of syntax was
considered more pascal.
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to