[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
Sat Jul 6 16:03:47 CEST 2019
On Sat, Jul 6, 2019 at 2:15 AM Tony via fpc-devel <
fpc-devel at lists.freepascal.org> wrote:
> On Thu, 4 Jul 2019 12:00:07 +0200
> Marco van de Voort <fpc at pascalprogramming.org> wrote:
>
> > In conclusion: it is a solution in search of a problem, with bad
> > behaviour in errorhandling (when unbalanced the compiler errors on
> > perfectly fine code in the wrong place after whatever ' closes the
> > unbalanced ) on top of it.
> >
> > This is why the feature goes against the grain of Pascal IMHO.
>
> Well said Marco! I have been reading this mailing list for some time
> and have been disturbed recently-ish by how often suggestions come up
> for "my pet feature from another language" or "a cool idea I just
> had" (I am probably doing an injustice to some of the suggestions, but
> often they feel deeply un-Pascal-ish - I can't define it but I know it
> when I see it). In these circumstances, a healthy scepticism and
> conservatism among the development team is a good thing.
>
I think you are certainly doing injustice to a lot of things. Furthermore,
you realize it is possible, to just, you know, make the compiler give
better errors when necessary / desired?
I intend to add something like this for unterminated multi-line strings,
most likely once I'm done writing my tests and have submitted a formal
patch on the bugtracker.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20190706/364c4cc7/attachment.html>
More information about the fpc-devel
mailing list