[fpc-devel] Some thoughts on multi-line string support, and a possible syntax that I think is perfectly clean and Pascal-ish.

Ben Grasset operator97 at gmail.com
Fri Jul 5 04:01:24 CEST 2019


On Thu, Jul 4, 2019 at 9:30 PM Ryan Joseph <genericptr at gmail.com> wrote:

> I must have missed something, why would a single apostrophe be anything
> besides just another character? I thought another use of `` strings would
> be that you don’t need to escape apostrophes using ‘'.
>

I didn't really think it should be. Just wanted to make sure we're aiming
for the exact "mirror image" of normal strings.

On Thu, Jul 4, 2019 at 9:35 PM Michael Van Canneyt <michael at freepascal.org>
wrote:

> for reasons of symmetry, if
> '`' (quote backtick quote)
> is legal, then
> `'` (backtick quote backtick)
> should also be. I see no point in allowing a normal quote to end a `
> string,
> as the opposite also does not happen. A backtick also does not end a
> single-quoted string.
>
> The backticked string is in all respects the same as a regular string,
> except that the single quote delimiter is replaced by a backtick delimiter.
>
> That means that `this is `` a bakcticked string with a backtick in it`
> should also work.
>

Ok, that's how it already works with the revised version. Just thought I
would double-check.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20190704/beba374a/attachment.html>


More information about the fpc-devel mailing list