[fpc-pascal] Feature announcement: Dynamic array extensions

Sven Barth pascaldragon at googlemail.com
Sat Jun 2 15:14:06 CEST 2018


Mark Morgan Lloyd <markMLl.fpc-pascal at telemetry.co.uk> schrieb am Sa., 2.
Juni 2018, 10:53:

> However as Dennis points out + is also essential for vector operations.
> Perhaps either leaving it to the programmer to define what's needed
> would be the best approach, or alternatively splitting dynamic arrays
> into mathematical vectors and non-mathematical collections. Or relaxing
> the requirement that only predefined operators can be redefined, so that
> something like _ could be used for concatenation.
>

That needlessly complicates the parser as the compiler still needs to know
them and they also need to be part of its operator precedence rules. Don't
complicate the language for nothing! And in the end operator overloads are
one of the best examples for syntactic sugar as you can easily achieve the
same result with functions and methods.

Regards,
Sven

>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20180602/13e8af6a/attachment.html>


More information about the fpc-pascal mailing list