On Fri, 21 Sep 2018 at 15:11, Larry Garfield <la...@garfieldtech.com> wrote:
> Perhaps another disconnect here is that, in practice, the consumer of an > object property is, in my experience, almost always "me". I almost never > have > public properties on my objects. On the rare occasion I do, it's for a > "struct object" I'm using internally as a more self-documenting and memory > efficient alternative to a nested associative array. My impression is that people will be encouraged by this feature to implement more value objects with public properties, where they currently have getters and setters doing nothing but type checks; and thus more code will be exposed to uninitialized properties if there is a bug in a constructor. Indeed, it's arguable that if all properties were private, there would be no need to enforce type hints all, since analysis of where they were set would be trivial. Regards, -- Rowan Collins [IMSoP]