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

Marģers . margers.roked at inbox.lv
Thu Jul 4 12:59:55 CEST 2019


 

----- Reply to message -----
Subject: Re: [fpc-devel] Some thoughts on
multi-line string support, and a possible syntax
that I think is perfectly clean and Pascal-ish.
Date: trešd., 3 jūl., 23:20
From:  Ben Grasset <operator97 at gmail.com>
To:  FPC developers' list
<fpc-devel at lists.freepascal.org>
> program Example;

> (*
>   This is a perfectly
>   normal multi-line
>   Pascal comment.
> *)

> const SA = `
>   This is a multiline
>   string using hypothetical backticks.
>   Imagine it was fully syntax-highlighted
>   like normal strings and the comment
>   above are.
> `;

> begin
> end. 

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.



More information about the fpc-devel mailing list