Re: Feature "Multiline strings" added

Hairy Pixels via fpc-pascal <[email protected]>
Newsgroups gmane.comp.compilers.free-pascal.general
Message-ID <CAGsUGtnOod_hb8vupD24_c4pNSPBa4UG1sk+262p0wNJr0nOcA@mail.gmail.com>
 On Jul 28, 2025 at 9:12:53 AM, Michael Van Canneyt <[email protected]>
wrote:

> Because the amount of whitespace to remove at the start of every line
> is determined by the amount of spaces before the closing triple quotes.
>
> Ergo, you can only strip the whitespaces at the start of every line
> after the whole string was parsed and you have determined the
> number of whitespace characters to remove from every line...
> -> 2 passes.
>

oh I re-read the first email and see its implemented differently.

I’ve been using multi lines strings in Swift for my day job for a few years
now and got used to the “”” style which include indentation too and I’ve
had no complaints. Since whitespace is important to multiline strings
having the compiler enforce indentation rules makes sense to me.

Personally I’ll be using the ‘’’ variant so I don’t need to change syntax
definitions in Sublime Text + VSCode and how many others that I may come
across.

Regards,
    Ryan Joseph

_______________________________________________
fpc-pascal maillist  -  [email protected]
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.