Re:Zig; what I think after months of using it
by zamalek on Tuesday February 04, 2025 @11:22PM
(#42943757)
The example given isn't that great. Here's a significantly more common one:
Without same-scope shadowing you end up with the obnoxious:
Note that your current language probably does allow shadowing: in nested scopes (closures).
[ Parent
| on HN ]
Re:Zig; what I think after months of using it
by chrisco255 on Tuesday February 04, 2025 @11:37PM
(#42943862)
Changing the type on a value is an anti-pattern, in my opinion. It's not obnoxious to be explicit in your variable names.