News for hackers. Stuff that matters.
Re:Zig; what I think after months of using it by lnenad on Tuesday February 04, 2025 @11:36PM (#42943860)
Yeah, it's a feature of a language, doesn't mean we are forced to use it.
Re:Zig; what I think after months of using it by antonvs on Wednesday February 05, 2025 @11:52PM (#42959216)
You asked when it became a feature. I answered that.

But your antipathy towards the feature is misplaced. Several languages with the most rigorous foundations support shadowing: SML, Ocaml, Haskell, Scheme,

You're probably more familiar with languages that have unrestricted mutation, in which case something much worse than shadowing is allowed: changing the value of an existing variable.