[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
Wed Jul 3 22:20:12 CEST 2019


On Wed, Jul 3, 2019 at 3:27 PM gabor <gabor at poczta.onet.pl> wrote:

> I am also against this


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.
`;

const SB =
' This is a multiline' + sLineBreak +
' string using the current syntax.' + sLineBreak +
' Do you really' + sLineBreak +
' find this to be' + sLineBreak +
' more readable?';

begin
end.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20190703/8acf08b1/attachment.html>


More information about the fpc-devel mailing list