[fpc-pascal] An idea for a "pair" type
Ryan Joseph
genericptr at gmail.com
Wed Dec 16 19:03:56 CET 2020
> On Dec 16, 2020, at 10:50 AM, Sven Barth <pascaldragon at googlemail.com> wrote:
>
> This can simply be done using existing language constructs, no need to introduce anything new.
>
That's what I thought you'd say. ;) It's basically syntactic sugar surrounding a generic record, so yes technically it is. It's just something I use so often I figure it warrants being included in the language itself. I use them in Swift, JavaScript, Python and PHP. It's very handy syntax and proven itself in the industry by 2020.
Regards,
Ryan Joseph
More information about the fpc-pascal
mailing list