3 ms·
> i.e. adding this check (as a warning) to rustc doesn't look too hard and wouldn't break existing code. One point of distinction: Zig does not have compile-ti
by espeed 8y ago
> i.e. adding this check (as a warning) to rustc doesn't look too hard and wouldn't break existing code.
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.
- Yoric 8y agoI 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.
- espeed 8y agoOT FYI: I just looked at your profile and noticed we have something in common. Your HND matches my DOB ~> 224