2 ms·
Yes, but if a language provides a mechanism whereby what look in other languages like property accessors can actually be implemented as method calls, then in th
by raganwald 16y ago
Yes, but if a language provides a mechanism whereby what look in other languages like property accessors can actually be implemented as method calls, then in that language, 98% of programmers ought to--like true scotsmen--expect that it might be a variable and then again it might be a method call.
Case in point: In Ruby, foo.bar and foo.bar= are never property accessors, it's just that sometimes there exists code such that foo.bar returns @bar and foo.bar= sets @bar.