[fpc-pascal] An idea for a "pair" type

Sven Barth pascaldragon at googlemail.com
Thu Dec 17 00:11:53 CET 2020


Ryan Joseph via fpc-pascal <fpc-pascal at lists.freepascal.org> schrieb am
Mi., 16. Dez. 2020, 19:41:

>
>
> > 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.
>

No, something being used often is not sufficient cause for a language
extension. A cause for a language extension is something that is not easily
achieved using existing mechanisms, essentially pure syntactic sugar does
not count as such.

Regards,
Sven

>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20201217/6a167b3e/attachment.htm>


More information about the fpc-pascal mailing list