3 ms·
You really find auto x = new int[64]; harder to read than int* x = malloc(sizeof(int)*64); ? If so, I think it's just a matter of habituation and imp
by jordigh 11y ago
You really find
auto x = new int[64];
harder to read than
int* x = malloc(sizeof(int)*64);
?
If so, I think it's just a matter of habituation and imprinting. Whatever you learned first is easier and everything else is hard.
- smitherfield 11y agoBoth C and C++ have readability issues. ((void(*)())exec)(); or template <typename T> struct value_type { typedef typename T::value_type type; }; template <typename T> struct value_type<T*> { typedef T type; }; Six of one, half a dozen of the other.