3 ms·
Programming without IDE is so 1970's... Having said this, I usually only use type inference when the types are obvious from context.
by pjmlp 2y ago
Programming without IDE is so 1970's...
Having said this, I usually only use type inference when the types are obvious from context.
- jayd16 2y agoWas this tongue in cheek? If you _can_ use inference it was at least obvious enough to the compiler. Otherwise you're just saying "I use it when I feel like it."
- pjmlp 2y agoauto x = func(); // no idea about func return type auto x = new Widget(); // DRY auto sum (auto a, auto b); // template function without boilerplate Use the same principle in other contexts.