3 ms·
So decltype instead typeof Damn... though not really surprising. To me this exemplifies C++ - it does reasonable things, but in that slightly ass-backwa
by huhtenberg 15y ago
So
decltype
instead
typeof
Damn... though not really surprising. To me this exemplifies C++ - it does reasonable things, but in that slightly ass-backwards way that makes it annoying... like a light switch that is installed upside down.
- queensnake 15y agoI think it's because existing compilers (eg GCC) used typeof already for experimental implementations, so the standard had to avoid it. Same as with hashmap, hashset -> unordered_map, unordered_set.
- scott_s 15y agoYes, exactly. The natural words for things are already used as extensions, and they want to avoid clashes.