[fpc-devel] Current "state of opinion" on multiline strings? I still have this up-to-date locally with trunk FPC, despite having neglected pushing this anywhere online for a while now.
Ben Grasset
operator97 at gmail.com
Mon Dec 30 07:25:31 CET 2024
On Sun, Dec 22, 2024 at 5:15 AM Hairy Pixels via fpc-devel <
fpc-devel at lists.freepascal.org> wrote:
> On Dec 22, 2024 at 9:29:37 AM, Ben Grasset via fpc-devel <
> fpc-devel at lists.freepascal.org> wrote:
>
>> I'd certainly don't really WANT to adapt to the (like I said, worse in my
>> opinion) Delphi version, but I would if I "had" to. So that's why I figured
>> I'd check in to see what people's general thoughts are on all of this
>> nowadays.
>>
>
>
> What is Delphi doing? This?
>
> var s: String = ‘’'
> hello world
> ‘’’;
>
> That or backticks are the only thing that made sense to me. What are the
> pros and cons of both? Backticks are easier to type maybe, but I kind of
> like the block effect the triple single-quotes make. Backticks are familiar
> from another popular language (JavaScript) so there’s that.
>
> Regards,
> Ryan Joseph
>
> _______________________________________________
> fpc-devel maillist - fpc-devel at lists.freepascal.org
> https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel
The Delphi 12 docs state that's how it works yeah. I guess they aren't
backticks in Delphi, rather they're "single colons", though, looking at it
again, not that it matters that much. But yeah the docs say you need three
of them on each side, and neither the opening or closing set can be
directly followed by text on the same line. Which as you obviously know,
isn't how my version works / worked.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20241230/51f509a2/attachment.htm>
More information about the fpc-devel
mailing list