Re:Some Thoughts on Zig
by neandrake on Thursday July 21, 2022 @11:29PM
(#32188168)
I think it’s a typo and they meant unused parameters.
[ Parent
| on HN ]
Yes, I meant unused parameters. Makes it very hard to do TDD.
I have an editor macro that inserts
_ = myvar; // TODO remove
easily for all function arguments when prototyping.
I agree it can be cumbersome, but I am not sure it is a bad thing.
Re:Some Thoughts on Zig
by 41b696ef1113 on Friday July 22, 2022 @12:15AM
(#32188463)
Not that I write Go anymore, but this was definitely one of those things that regularly made my blood boil. Any kind of experimentation/swapping around data structures always invoked the wrath of the compiler when I am just trying to quickly iterate on an idea. Always felt like it disincentivized improvements.
Should have been a warning. Baked in from day-one, easily makes that a CI check without hampering development.
TS with this lint enabled as well.
When these languages tout fast iteration cycles, yet for a single-line code you have to do a recursive, n-step compilation of everything that might also get unused is literally insane and indefensible position.