[fpc-pascal] Feature "Multiline strings" added
Hairy Pixels
genericptr at gmail.com
Mon Jul 28 16:26:45 CEST 2025
On Jul 28, 2025 at 1:04:49 AM, Michael Van Canneyt via fpc-pascal <
fpc-pascal at 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20250728/d838371c/attachment.htm>
More information about the fpc-pascal
mailing list