<div dir="auto"><div><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Graeme Geldenhuys via fpc-pascal <<a href="mailto:fpc-pascal@lists.freepascal.org">fpc-pascal@lists.freepascal.org</a>> schrieb am Mi., 28. Apr. 2021, 19:00:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello Sven,<br>
<br>
On 28/04/2021 6:32 am, Sven Barth via fpc-pascal wrote:<br>
> Second: the syntax is required for Delphi compatibility anyway <br>
<br>
Couldn't such verbose syntax be limited to {$mode delphi} behaviour,<br>
and then leave {$mode objfpc} free to experiment and introduce new<br>
less verbose syntax in the language.<br>
<br>
Granted I fully understand that that would have the negative effect that<br>
many thing would have to be implemented twice. It just feels like FPC<br>
can't progress much with the Object Pascal language, because everything<br>
must be "Delphi compatible". :-( This result in FPC always being one step<br>
behind, and Embarcadero doesn't always make the best decisions for the<br>
language either.<br></blockquote></div></div><div dir="auto"><br></div><div dir="auto">You completely ignored my first point, which in this case is the much more significant one: Pascal does not support type inference.</div><div dir="auto"><br></div><div dir="auto">It is impossible to implement a syntax like you're suggesting without major rework of the parser. That is something we're not willing to do with only the possible and in the grand scheme of things very minor benefit of a slimmer syntax. </div><div dir="auto"><br></div><div dir="auto">Regards, </div><div dir="auto">Sven </div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
</blockquote></div></div></div>