Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

So your ice turns 'let unused = func();' into 'let _ = func();' automatically? Okay but then do I later have to grep for 'let _' to find all these unused variables and delete them? This is silly and a has consequence of zig not having any system for warnings


Why not ignore unused variables in debug and warn in release mode?


Warning everywhere makes sense. BMG zig doesn't have warnings at all. Just errors




Consider applying for YC's Fall 2026 batch! Applications are open till July 27.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: