[fpc-devel] Some thoughts on multi-line string support, and a possible syntax that I think is perfectly clean and Pascal-ish.
Sven Barth
pascaldragon at googlemail.com
Fri Jul 5 14:21:24 CEST 2019
Benito van der Zander <benito at benibela.de> schrieb am Fr., 5. Juli 2019,
11:33:
> Hi,
>
> Am 04.07.19 um 19:51 schrieb Marco van de Voort:
>
>
>
> If $ifdef was a single char token, maybe. And for a trivial feature, not a
> core one, like conditional compiling.
>
>
> So the compiler will correctly give an error.
>
>
> ... but not at or near the place where the mistake is made.
>
>
> Some languages uses multiple chars to mark start and end to solve that.
> E.g. in XQuery there are strings with 3-char markers: ``[ ... ]``
>
And that would solve the problem if a missing termination how? It would be
even worse, cause you could forget one of the backticks (e.g. on my systems
it's a dead key, thus I also need to use space to get the character) and
you might not easily see where it is missing.
Regards,
Sven
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20190705/f164c592/attachment.html>
More information about the fpc-devel
mailing list