News for hackers. Stuff that matters.
Re:“A closure is a poor man’s object; an object is a poor ma... by jfoutz on Monday May 01, 2017 @01:16PM (#14239409)
> If an object has getters and setters for all its members, then it isn't really an object.

Minor quibble. Take for example a coordinate class, that you can get/set cartesian, and get/set polar. It's a nice example of an object with no private state, but transparently hides the coordinate system transformations.

In general, i agree with you. The vast majority are just (possibly immutable) structs.

There are no comments on this comment yet.