On Sun, Dec 22, 2024 at 5:15 AM Hairy Pixels via fpc-devel < fpc-devel@lists.freepascal.org> wrote:
> On Dec 22, 2024 at 9:29:37 AM, Ben Grasset via fpc-devel < > fpc-devel@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@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.
_______________________________________________ fpc-devel maillist - fpc-devel@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel