by PoignardAzur · 2y ago · 0 comments
That used to be the common wisdom (especially because of C/C++), but it's a lot more debated these days.
The consensus in the Rust community is that the current situation (one canonical-by-definition compiler, lots of documentation, a minimal spec for safety-critical industries, and specs for some modular sub-parts) get most of the advantages of multiple implementations without the drawbacks.
And no, the official compiler isn't canonical by definition. If it were, it would mean it has no bugs, and if there's a crash or a wrong result that's what the language is supposed to do.
For now, anyone who finds that “crate foo works fine on rustc but doesn’t on gccrs” can just report a bug to gccrs.
By who specifically? I only ever see arguments against standardization and multiple implementations from the Rust community.