[squeak-dev] A lot of shadowed variable names in Squeak 6.0 needing clearing up

Chris Muller asqueaker at gmail.com
Mon Dec 26 23:17:17 UTC 2022


>
> Right now when a variable name is shadowed we only get a line appearing in
> the Transcript, which is alarmingly easy to miss. Given how many other
> alerts we get popping up for undeclared or unused variables, maybe we need
> to add one more for shadowing.
>

Shadowed variables are not an issue, technically, just from the
code-clarity sense, which syntax-highlighting has now largely resolved.  I
think such fixes like these should be handled by the existing batch process
in the development cycle where one cleans the Lint out of one's code.  If
you must add yet another pop up for this, make sure loading a large package
with a lot of shadowed variables doesn't produce hundreds of such pop ups.
Which, of course, I guess you'd be back to a bunch of code with shadowed
variables with no way to identify them except the Transcript notifications
again.  So, maybe that's another reason to relegate this to the deLint'ing
stage.

Best,
  Chris


>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20221226/59b8ca45/attachment.html>


More information about the Squeak-dev mailing list