On Jul 28, 2025 at 1:04:49 AM, Michael Van Canneyt via fpc-pascal <
fpc-pascal@lists.freepascal.org> wrote:

> Personally, I prefer the backtick solution.
> The triple quote is slow, it requires postprocessing the string.
> The backtick solution needs only one pass.
>
> <rant>
> I positively HATE it when people start treating whitespace as
> significant. No YAML or Python for me on that account alone.
> The triple quote solution (presumably Python inspired)
> is a totally braindead and retarded solution as far as I am concerned.
> </rant>
>

Maybe I missed something, aren’t both the string types identical in how
they function? I don’t understand how there could be multiple passes.

The ‘’’ was probably chosen because it doesn’t  introduce a new token and
old syntax styles will continue to work without modification. `` is a
string and ` opens the “inner string” so everything still works naturally
like before in existing editors.

Even doing that may be baggage from decades of ingrained thinking about
strings being single lines. If anyone has any non-dogmatic reasons why ‘’
can’t allow multiple lines I’d like to hear them because I’m curious myself.

Regards,
    Ryan Joseph
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply via email to