|
|
|
|
|
by dllthomas
4666 days 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 |
|