←back to thread

228 points Retro_Dev | 1 comments | | HN request time: 0.208s | 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. mlugg ◴[] No.44468527[source]
This is simply not true. See https://zigbin.io/f57b94/run.

(That link seems to show the "unused local variable" error line twice for me; that's some kind of bug with this zigbin service and does not reproduce when running the Zig compiler normally.)