this property" we have great readable code. Why do you think that it's bad that for example def textInFile = file.text reads whole file into memory and interprets it as a ut8 string in it's getter?
From OOP standpoint, class "File" has "text" property. And it's implementation requires to do all that not simple and not straightforward logic. This property implementation has nothing to do with private fields at all
CAPTCHA! Are you an A.I 🤔? coz you're so good at explaining this stuff.
Обсуждают сегодня