3 ms·
I like the procedural version of Pascal, with records, procedures and units, however the more modern Pascal that you can find in FreePascal where you have to ei
by tored 5y ago
I like the procedural version of Pascal, with records, procedures and units, however the more modern Pascal that you can find in FreePascal where you have to either inherit or implement a class for any advanced container is cumbersome.
- badsectoracula 5y agoThe language had support for dynamic arrays for ages and the intrinsic functions like insert, etc have been extended to work with them in latest version (i'm not 100% sure if this is available in the latest relase, but it is available in the trunk). So for simple stuff that should work. But yeah the containers that FPC provides are indeed cumbersome and i blame Delphi for that and FPC's insistence on copying all those bad features (ok, i understand the need to remain compatible so people can switch to FPC, but they can always provide better tools too - perhaps they're burned from when they implemented generics first and then Delphi implemented theirs in an incompatible way and now they have to support both). On the other hand, you can make your own and i have mine which can use any old data structure, be it primitives, records or classes.