[fpc-pascal] Feature "Multiline strings" added

Hairy Pixels genericptr at gmail.com
Sun Jul 27 19:43:41 CEST 2025


 On Jul 27, 2025 at 11:01:16 AM, Michalis Kamburelis via fpc-pascal <
fpc-pascal at lists.freepascal.org> wrote:

> I'd say that (while I understand the reasons it happened) having 2
> ways in the language to do the same thing -> makes things more
> complicated.
>
> Why?
>

I originally liked the back ticks but after more consideration I think
triple quote is best because it’s commonly understand from other major
languages (Python,Swift,C# since 2023)  and doesn’t introduce new
symbols/tokens into the language.

The backticks are famous from JavaScript but they are used for variable
interpolation which FPC doesn’t even have so it’s not even a 1:1 match with
JavaScript.

Agreed, more than one way to write strings is not helpful and in fact
harmful. It really does annoy me in JS that both options exist and you need
to agree on which quote to use and sometimes it gets mixed with different
programmers etc.. working on the same codebase.

Anyways, thanks to for getting this merged. It’s been a whopping 6 years
since the PR was made and it’s a very welcome feature for embedded code. 👏

Regards,
    Ryan Joseph
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20250727/a593d561/attachment.htm>


More information about the fpc-pascal mailing list