4 ms·
Having a temporary variable to make code more readable is hardly a 'clever thing'
by nly 6y ago
Having a temporary variable to make code more readable is hardly a 'clever thing'
- AlexanderDhoore 6y agoMaybe not in a sane language. But apparently it is in C++.
- rualca 6y ago> Having a temporary variable to make code more readable is hardly a 'clever thing' Right, but if you're sprinkling your code with temp variables, specially with a language such as C++ where copy elision is far from ensured, then you're already not averse to the idea of instantiating variables left and right.