3 ms·
> we don't want same sourcecode compile with one compiler implementation, but not the other... right? It's not ideal, but I can live with it so long as when I
by tialaramex 4y ago
> we don't want same sourcecode compile with one compiler implementation, but not the other... right?
It's not ideal, but I can live with it so long as when I write a program which compiles it has the desired behaviour. That's the problem in C++ and to a lesser extent C which ultimately falls out of this same constraint. In C++ it's easy to write programs which compiler A and compiler B will both compile but they have different results and neither of them is wrong. I have no use for this whatsoever.
If some Rust compilers say my program is unacceptable, and others build it correctly, obviously that's not brilliant news but I can choose whether to fix the program to be acceptable to more compilers, or not worry - the results at least are correct.