←back to thread

228 points Retro_Dev | 3 comments | | HN request time: 0.637s | source
Show context
barelysapient ◴[] No.44465168[source]
A big change like this makes me hopeful Zig may revisit and improve other design choices in the future.
replies(1): >>44466074 #
bbkane ◴[] No.44466074[source]
Could you elaborate on the choices you'd like revisited?
replies(3): >>44466265 #>>44470288 #>>44472856 #
90s_dev ◴[] No.44466265[source]
Unused variables stops all further compilation, so that even future errors can't be seen until the variable is used.
replies(2): >>44467902 #>>44468527 #
1. Mond_ ◴[] No.44467902[source]
Meh.

I think this should be a warning on debug builds and an error on release builds, but it's a relatively minor thing and not a deal breaker by any means.

If this is the worst thing that people would like to see revisited, Zig must be doing amazingly well.

replies(1): >>44469251 #
2. josephg ◴[] No.44469251[source]
> but it's a relatively minor thing and not a deal breaker by any means.

It totally breaks my normal workflow. I don’t use zig at all because of this misfeature. Warn in debug and error on release builds would be strange but fine.

replies(1): >>44471738 #
3. ◴[] No.44471738[source]