[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
Thu Jul 4 07:17:19 CEST 2019
Am 04.07.2019 um 00:08 schrieb Ben Grasset:
> On Wed, Jul 3, 2019 at 5:48 PM Sven Barth via fpc-devel
> <fpc-devel at lists.freepascal.org
> <mailto:fpc-devel at lists.freepascal.org>> wrote:
>
> I'm with Michael here: I see no *need* for a separate syntax for a
> multi line string.
>
>
> I don't really think the suggested backtick way is different enough
> from anything that exists to be considered a "separate syntax",
> though. It's the exact same thing, with a one-character difference at
> the opening and close of the string.
As far as the compiler is concerned it definitely *is* a separate
syntax. It's a completely new token that didn't exist before with new
code inside the parser. Don't try to sugarcoat it because the difference
between an apostrophe and a backtick is optically that small.
Regards,
Sven
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20190704/d47799a5/attachment-0001.html>
More information about the fpc-devel
mailing list