On Tue, Jul 17, 2018 at 11:45:26AM +0200, Sven Barth via fpc-pascal wrote: > Henry Vermaak <henry.verm...@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. <s...@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
By not having this feature you're not giving anyone a choice. > don't like looking at such C code, so why would I want that in Pascal which > avoided that problem? What problem? I'm not saying I want to mix declarations with code, the var section should be at the top of the block/scope. I don't even know any C programmers that mix declarations with code. This isn't the 80s. Henry _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal