On Tue, 17 Jul 2018, Martin wrote:

On 17/07/2018 11:05, Henry Vermaak wrote:
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.
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.


[snip]


If you have a scoping problem in pascal, cut your code into smaller procedures.

Which is what I have been saying all along...

Michael.
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply via email to