3 ms·
Interestingly, this (narrow) case is supported by C++ (auto) now. Even C, kind of: #define AUTO_TYPE(X,Y) __typeof(Y) X = Y ... though I'm not sure I'd recom
by dllthomas 13y ago
Interestingly, this (narrow) case is supported by C++ (auto) now.
Even C, kind of:
#define AUTO_TYPE(X,Y) __typeof(Y) X = Y
... though I'm not sure I'd recommend it.
Type inference in full generality can give you a bunch more, as I just went into over here: https://news.ycombinator.com/item?id=6327327 https://news.ycombinator.com/item?id=6327327