News for hackers. Stuff that matters.
Re:Some Thoughts on Zig by peteradio on Thursday July 21, 2022 @11:23PM (#32188131)
> More concerning is that un-named parameters are a compiler error and this cannot be adjusted.

Would you be willing to expand this a bit? This would save you from giving a dummy name in a function?

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.
Re:Some Thoughts on Zig by LAC-Tech on Thursday July 21, 2022 @11:43PM (#32188256)
Yes, I meant unused parameters. Makes it very hard to do TDD.
Re:Some Thoughts on Zig by kuon on Thursday July 21, 2022 @11:56PM (#32188339)
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.

Re:Some Thoughts on Zig by kaba0 on Friday July 22, 2022 @03:01AM (#32189336)
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.