3 ms·
Its 5 extra characters actually.. because any sensible C++ project has i32 etc defined. The type omission version isn't very useful, as this type of code is di
by TinkersW 4y ago
Its 5 extra characters actually.. because any sensible C++ project has i32 etc defined.
The type omission version isn't very useful, as this type of code is difficult to read later. Generally end up regretting using auto, and end up converting it to the actual type, except with iterators or nasty templates.
- deadbeeves 4y agoThat hasn't been my experience, personally. In fact, sometimes I wish decltype was easier to use, to declare type dependencies.