[TUHS] C and C++ Regrets
ron at ronnatalie.com
ron at ronnatalie.com
Sun Apr 26 02:13:03 AEST 2020
The two things I'd wish had happened in C or C++
1. That when they fixed structs/unions to have proper assignment and
function argument and return behavior (i.e., making them full-fledged
types), that they would have done the same for arrays. This inane "treat
it like a pointer" has always been problematic.
2. That the default behavior in C++ is to *ALWAYS* initialize an object,
even if it is POD, no matter how it is allocated.
More information about the TUHS
mailing list