News for hackers. Stuff that matters.
Re:I Want Off Mr. Golang's Wild Ride by hope-striker on Friday February 28, 2020 @04:27PM (#22446530)
Shadowing is when you have two separate variables with the same identifier. It is beyond obvious that all the x's refer to the same variable in dilap's example. Contrast that with an actual example of shadowing[0], in which it is clear that the same identifier is being used to refer to two different variables.

[0]: https://en.wikipedia.org/wiki/Variable_shadowing#Python

Re:I Want Off Mr. Golang's Wild Ride by joshuamorton on Friday February 28, 2020 @04:42PM (#22446686)
I'm using shadowing in the rust sense, not the python sense.
Re:I Want Off Mr. Golang's Wild Ride by hope-striker on Friday February 28, 2020 @04:43PM (#22446691)
They are the exact same sense!

The exact same idea of shadowing is also present in, for example, sentences in first order logic.