<div dir="auto"><div><div class="gmail_quote gmail_quote_container"><div dir="ltr" class="gmail_attr">Pierre Muller via fpc-pascal <<a href="mailto:fpc-pascal@lists.freepascal.org">fpc-pascal@lists.freepascal.org</a>> schrieb am Mo., 28. Juli 2025, 15:27:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
<br>
Le 28/07/2025 à 10:07, Michalis Kamburelis via fpc-pascal a écrit :<br>
> Michael Van Canneyt wrote:<br>
>> Personally, I prefer the backtick solution.<br>
>> The triple quote is slow, it requires postprocessing the string.<br>
>> The backtick solution needs only one pass.<br>
>><br>
>> <rant><br>
>> I positively HATE it when people start treating whitespace as<br>
>> significant. No YAML or Python for me on that account alone.<br>
>> The triple quote solution (presumably Python inspired)<br>
>> is a totally braindead and retarded solution as far as I am concerned.<br>
>> </rant><br>
>><br>
>> You can guess from that little rant that I myself will certainly not<br>
>> remove or even deprecate the backtick version.<br>
>><br>
>> If having one soluton for all is the norm, we need to remove a lot more<br>
>> things from FPC that Delphi did differently than we do. We don't do that either.<br>
>> Compatibility, yes. But that should not prevent us from doing things our own<br>
>> way from time to time.<br>
>><br>
>> The solution is simple:<br>
>> if you don't like the backticks, don't use them.<br>
>><br>
> <br>
> I can see how this can get into a heated discussion (hopefully it will<br>
> not!) :) You have the last word when it comes to FPC decisions,<br>
> obviously. Still, let me try to present the case for "deprecate<br>
> backticks" again.<br>
> <br>
> The problem with your solution """if you don't like the backticks,<br>
> don't use them.""" -> is that it means we have 2 ways to achieve the<br>
> same thing in the Pascal language, to the end of time, and users<br>
> *will* get confused about them and we have 2x more work to explain it.<br>
> Things like indentation, crlf/native/etc., what happens with last line<br>
> -> they have now 2 different behaviors, and people who work with<br>
> various Pascal code (Pas2js, FPC, Delphi) will need to grok them both<br>
> and remember which {$xxx} affects which. This makes things harder --<br>
> to document, to teach, and to not confuse ourselves when reading alien<br>
> code.<br>
<br>
I think that a possible solution would be to allow to restrict the mode switch to allow<br>
only triple-quote or only backquote delimiter.<br>
<br>
The idea is simply to add:<br>
{$modeswitch multilinestrings triplequote}<br>
and<br>
{$modeswitch multilinestrings backquote}<br></blockquote></div></div><div dir="auto"><br></div><div dir="auto">We will *not* extend the modeswitch directive for something like that. </div><div dir="auto"><br></div><div dir="auto">Regards, </div><div dir="auto">Sven </div></div>