3 ms·
> auto oldfont = SelectObject(...); I've never grown to like that very much. Being a little bit more verbose, in my mind, only pessimizes (keyboard) typing
by jstimpfle 5y ago
> auto oldfont = SelectObject(...);
I've never grown to like that very much. Being a little bit more verbose, in my mind, only pessimizes (keyboard) typing efficiency - when scripting at full speed, but not to the extent that it would harm when "just" being productive and in the zone.
But the explicitness comes with advantages, one I assume is compilation speed (to an extent), but then also having to fix issues when type resolution is (or becomes, after a change) ambiguous, which requires small local and sometimes not-so-local changes.
Another advantage is ease of caching in a piece of code when bumping around the codebase - which is important even if I was the original author.
Also navigation to the definition of the type is faster/easier if the type is written explicitly, when using bare-bones editors but also in IDEs.