3 ms·
There are also some features that have been introduced later, but which are so simple that they do not increase the cognitive load, so there is no need to avoid
by adrian_b 1y ago
There are also some features that have been introduced later, but which are so simple that they do not increase the cognitive load, so there is no need to avoid them.
For example, C++14 has introduced a digit separator in numbers, some 35 years after Ada. For me this is an extremely useful feature, because I have to use big constants from time to time, even if I hate any contributor to the C++ standard who has thought that instead of using underscore as the digit separator, like in Ada and in many languages that have followed Ada, it is a good idea to replace the underscore with the apostrophe.
There has never been any valid argument for using the apostrophe instead of the underscore. Underscore would have introduced a few subtle complications when parsing legacy programs, but that is also true for the apostrophe. Such complications could have been trivially avoided by forbidding a number to start with a separator.