Copying your "tone" in my answer below...

On 26/04/2026 01:46, Warren Postma via fpc-pascal wrote:
Not having inline variables means that our strongly typed language Pascal doesn't have as precise a scoping of variables as possible, preventing read access before initialization, which is a major smell in the pascal language and compiler designs.

<sarcasm> Yes, </sarcasm> Just look at JS to see how well it works

    function a() { "use strict";  var x = b; var b; return b;} a();

The above compiles and runs just fine. Clearly "preventing read access before initialization". <sarcasm> But, its very popular, so we should definitely copy that </sarcasm>

IIRC JS has now a linter, trying to get rid of the problems they created. But you want that we go introduce some part of that.... Really?
_______________________________________________
fpc-pascal maillist  -  [email protected]
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply via email to