News for hackers. Stuff that matters.
Re:Zig; what I think after months of using it by Maxatar on Tuesday February 04, 2025 @11:18PM (#42943739)
Don't see how it could introduce bugs. The point of replacing a variable is precisely to make a value that is no longer needed inaccessible. If anything introducing new variables with new names has the potential to introduce subtle bugs since someone could mistakenly use one of the variables that is no longer valid or no longer needed.
Re:Zig; what I think after months of using it by sjburt on Wednesday February 05, 2025 @12:16AM (#42944127)
When you are modifying a long closure and don’t notice that you are shadowing a variable that is used later.

I know “use shorter functions” but tell that to my coworkers.