Note that compilers are more than happy to delete 'while (true)' if the loop doesn't have side-effects.
Both languages continue to have examples of slightly more complicated loops that can be assumed to terminate in the absence of side effects, but `while(true)` isn't one of those any longer.
But also, I wouldn't rely on a compiler to remove empty 'while (true)' loops.