[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 14:20:39 CEST 2019
Michael Van Canneyt <michael at freepascal.org> schrieb am Do., 4. Juli 2019,
13:54:
>
>
> On Thu, 4 Jul 2019, Tomas Hajny wrote:
>
> > On 2019-07-04 12:59, Marģers . via fpc-devel wrote:
> >
> > .
> > .
> >> Why introduce ` if there already is ' ? Just use '
> >> as well for multi line strings. For people of more
> >> conservative view point, put multilinestring
> >> behind mode switch.
> >
> > Because then it's never clear whether the fact that there's no ending
> > quote before the end of the line is an omission, or an intention.
>
> Exactly.
> The same goes for all other quote characters.
> That's why the directive is a better approach; it is unambigious.
>
That is indeed another significant problem. Though to be fair "missing
end." errors aren't that seldom either... (though I agree that we shouldn't
add a new variant to trigger that error ;) ).
Regards,
Sven
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20190704/776aed72/attachment.html>
More information about the fpc-devel
mailing list