3 ms·
Sure, but more radicial OO languages like Smalltalk were full of getters/setters too (e.g. in Smalltalk all member variables are private, so getters/setters are
by sltkr 12y ago
Sure, but more radicial OO languages like Smalltalk were full of getters/setters too (e.g. in Smalltalk all member variables are private, so getters/setters are the only way to access those) so it makes sense to think that this was just the way to go.
- pjmlp 12y agoEiffel introduced properties in 1985. The famous CLOS book was written in 1988, which makes use of slots instead. I am at work now, otherwise I could provide more information.