[fpc-pascal] Re: TLinkedList

Sven Barth pascaldragon at googlemail.com
Tue Feb 14 22:04:51 CET 2012


On 14.02.2012 21:38, Carver413 wrote:
>
>> As long as one knows of the disadvantages of generics there is no
>> problem in enjoying their advantages.
>
> the disadvantage will come in the useing. over time more and more units will
> contain these because they are easy. so you will end up with a lot of redundant
> code. doesn't matter if they know better or not. they will choose the easy path
> and let someone else worry about it. just like many of the half ported code that
> is out there, people port what they need to get there code working then
> contribute it hoping someone else will finish.

It won't really matter to you whether some unit you got from somewhere 
in the internet contains a specialization of a generic TList or whether 
the list was implemented especially for that type.

Free Pascal is a native language. There aren't much alternatives to code 
duplication.

Regards,
Sven




More information about the fpc-pascal mailing list