4 ms·
For 'auto'/magic: There's a looooot of material about pro and contra arguments, if you look at C#'s type inference. Replace auto x = ... with var x = .
by darklajid 15y ago
For 'auto'/magic:
There's a looooot of material about pro and contra arguments, if you look at C#'s type inference.
Replace
auto x = ...
with
var x = ...
and you can read a good amount of arguments about the benefits and (potential) downsides, and where people deem it useful and clear or where brittle and questionable.
The argument you're making was discussed at length when this feature was first introduced. I think it applies 100% here as well.