On 20/02/2019 19:56, Nikolai Zhubr wrote:
2) Nested loops exist. If in the middle of such a 1000 line for-loop, I
want to declare another loop, then I need to find a free identifier for
that variable. Today, I can do that by looking at the declaration on
top of the
procedure (and afaik depending on context, the class fields).
With inline declaration, I have to find each of the 10 surrounding
for-loops, scattered over a 1000 lines (And that is ignoring any
variables declared inline, but not as part of a for-loop). I would say
that is definitely worse.
You've probably missed that inline declartaion syntax is optional, not
mandatory, and is intended to only be used where appropriate.
No I haven't...
But if I read someone else's code, I don't know what they did and what not.
3) As for duck typing:
for var i:= Func1 to Func2 do;
I think it is totally different from "normal" inline declarations and
I don't like it actually.
Nice we agree on some point.
_______________________________________________
fpc-devel maillist - fpc-devel@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel