3 ms·
name shadowing isn't the same as strong typing, you can do the same thing in rust today https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist
by bfrog 7y ago
name shadowing isn't the same as strong typing, you can do the same thing in rust today
https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=fdf52c2ca5cdd74e6612e6497829fa63 https://play.rust-lang.org/?version=stable&mode=debug&editio...
- hope-striker 7y agoReassignment isn't shadowing. See https://news.ycombinator.com/item?id=22444824 https://news.ycombinator.com/item?id=22444824 .
- joshuamorton 7y agoSteve's wrong. Python names can't be made mutable.