4 ms·
> More concerning is that un-named parameters are a compiler error I've been ranting about it many times. Most recently: https://news.ycombinator.com/item?id=3
by sph 4y ago
> More concerning is that un-named parameters are a compiler error
I've been ranting about it many times. Most recently: https://news.ycombinator.com/item?id=32145520 https://news.ycombinator.com/item?id=32145520
There is an upstream issue about it where we should probably get our voices heard, it's encouraging to see many people in that thread that are opposed to that change, but it doesn't seem the core devs are open to considering any alternative, rather they just hope we can learn to live with it.
https://github.com/ziglang/zig/issues/335 https://github.com/ziglang/zig/issues/335
This is by far my biggest annoyance with Go, more so than writing if err != nil.
I feel I write code in a different way than other people. Some are very slow, thoughtful and methodical in writing code, while I tend to experiment, throwing stuff at the wall and iterating quickly, and only after going back to polish and refactor. Stopping every iteration during my experimentation phase to lint my code because the compiler is pedantic and stubborn just slows me down immensely and turns me off a language.
EDIT: went and shared my criticism upstream, in a constructive and reasoned manner, I hope. My quixotic fight against unused variables being errors carries on.
- LAC-Tech 4y agoI don't think there's any point addressing this through the Zig community. It's self-selecting for people who think this is perfectly fine. Public discussion of it is much more effective. Best case scenario, they take notice at the wider world meme'ing Zig for such irritating quirks and realise how many potential users they're losing. An OK case scenario is someone maintains a fork. Worst case scenario is they don't change, no one bothers with a fork, and very few people bother with Zig and general. Ball is in their court. I would hate for them to cut their nose to spite their face, but I suspect they will unfortunately.