News for hackers. Stuff that matters.
Re:Zig; what I think after months of using it by pkulak on Wednesday February 05, 2025 @12:17PM (#42951812)
It absolutely depends on the language and how heavily it encourages immutability. For example, Rust and Elixor allow 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.

There are no comments on this comment yet.