Re:Zig: programming language designed for robustness optimal...
by Yoric on Thursday May 31, 2018 @03:11AM
(#17194528)
I realize that this should be an error rather than a warning. But one of the policies of Rust since 1.0 is to not break existing code, so any mechanism that detects error that were not previously detected must make it a warning, rather than an error, otherwise some existing applications and libraries would stop compiling overnight.
I generally find this a sane policy, but YMMV.
One point of distinction: Zig does not have compile-time warnings, only errors. Simplicity by design. Either it will complie or it won't. Removing the uncertainty here means less greyarea, no space for edgecases in between.