C++ no longer considers trivial infinite loops to be undefined behaviour! https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2024/p2809r3.html
Spotted in the release notes for the latest clang.
miniblog.
Related Posts
I created a patch to a typescript project today, but accidentally reformatted it. When viewing my changes with difftastic, I didn't see any of the formatting changes!
This is kinda cool, but it would have annoyed the maintainer if I hadn't spotted it.
Today I learnt that .cxx is an extension used in some C++ projects because "xx" vaguely resembles "++" rotated! It makes sense, but I'd never spotted the similarity before.
If you're new to #python programming, welcome aboard! I've spotted a few techniques that newcomers miss out on and thus learn more slowly.