[fpc-pascal] Syntax changes suggestions
Sven Barth
pascaldragon at googlemail.com
Tue Jul 17 11:45:26 CEST 2018
Henry Vermaak <henry.vermaak at gmail.com> schrieb am Di., 17. Juli 2018,
11:05:
> On Mon, Jul 16, 2018 at 03:02:42PM +0200, Sven Barth via fpc-pascal wrote:
> > Santiago A. <svaa at ciberpiula.net> schrieb am Mo., 16. Juli 2018, 13:41:
> >
> > > I have some suggestions of change to freepascal syntax, just to debate
> > >
> > > (All are backward compatible)
> > >
> > > - Declaring variables inside blocks, and loop variables
> > >
> > -> reduces readability -> no interest
>
> How can it reduce readability? You move variables closer to where they
> are used, therefore reducing clutter in the main "var" section.
>
*you* might do this, but there are enough developers that won't. I already
don't like looking at such C code, so why would I want that in Pascal which
avoided that problem?
Limiting variable scope is definitely a good thing, I sure hope you're
> not arguing against that. That's why almost all languages encourage it.
>
I'm arguing against micromanaging the scope of a variable inside a
function.
Regards,
Sven
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20180717/4b3f5173/attachment.html>
More information about the fpc-pascal
mailing list