3 ms·
Most coding standards don't like that, and if you can't autoformat your code then you have bigger problems. I do agree that some of the problems are cultural ra
by lmm 11y ago
Most coding standards don't like that, and if you can't autoformat your code then you have bigger problems. I do agree that some of the problems are cultural rather than inherent to the language, but even if we do that,
public class Potato {
private final int size;
public Potato(int size) { this.size = size; }
int size() { return size; }
}
makes poor reading in comparison to
class Potato(val size: Int)
(I didn't mean a thousand getters/setters in a single class, but across the codebase as a whole)