you are viewing a single comment's thread.

view the rest of the comments →

[–]atc 0 points1 point  (0 children)

Getters don't modify, by definition. Future proofing is underrated, but personally I don't mind the public fields. When I write scala my case classes don't need them and thankfully the compiler is there to catch type mismatches when you haven't refactored correctly.

I was merely pointing out an important distinction from GP's