4 ms·
Yes, well expressed. For that case using var is not a wise approach. It does help when writing: var x = new MyClass(); Because then you avoid repetition.
by nunobrito 1y ago
Yes, well expressed. For that case using var is not a wise approach.
It does help when writing:
var x = new MyClass();
Because then you avoid repetition. Anyways, I don't ever use "var" to keep the code compatible with Java-8 style programming and easier on the eyes for the same reasons you mention.