voddan
09/01/2017, 1:10 PMprintStat
to accept Score
directly. Assuming this did not work for you real use case, what was the problem with it?benleggiero
09/01/2017, 1:29 PMvoddan
09/01/2017, 8:31 PMfun printStat(score: Score)
I proposed should only be written once, I can't count it as boilerplate.benleggiero
09/05/2017, 1:43 AMequals
function is something you only write once, but that "once" is multiplied across all classes. This is why it's generated in `data class`es. The same argument can be applied to this: Why require them to write a specialized function that takes in a specialized type and generifies it for every specialized type, when you can just make the generified functions destruct a data class
?voddan
09/05/2017, 4:38 AMbenleggiero
09/05/2017, 5:01 PMfor
loop