Remix.run Logo
ibobev 9 hours ago

> An infinite loop should compile to an infinite loop.

I think that a compiler option should control this. It can be a nice optimization, but the programmer should be able to opt out.

WalterBright 3 hours ago | parent | next [-]

Every flag that changes the semantics of the code bifurcates the language into two languages.

ibobev an hour ago | parent [-]

If we accept this definition, C++ already seems to be many different languages. At my job, I'm currently fighting floating-point determinism issues across different build configurations, compilers, CPUs, operating systems, and standard library and libm implementations so that snapshot tests pass with the same hashes on all platforms. I can confirm that this is a complete nightmare.

Xirdus 4 hours ago | parent | prev [-]

The programmer can opt out by terminating the loop.