3 ms·
How exactly are you supposed to refactor the last example to make it more readable? You could extract parts of it into separate methods, but I think splitting n
by rossy 7y ago
How exactly are you supposed to refactor the last example to make it more readable? You could extract parts of it into separate methods, but I think splitting nine lines of code into methods of four or so lines would increase cognitive load. You could also alias the types with using, but I'd argue that obscures the types just as much as var. Developers would have to hover over the declarations to see the real types either way.