by lnenad · 1y ago · 0 comments
That's not a fake problem, it's a problem I've actually run into on a regular basis on languages that don't have shadowing.
An awkward middle ground for me is Kotlin. It allows shadowing, but warns, so it might as well not be allowed. So you end up using lots of scoping tricks to avoid either making everything mutable, or having dozens of nearly-identical variables.