From: Philipp Hofmann Date: 2008-02-04T11:18:06+09:00 Subject: Re: @var = change to accessor method? Why? i'm on your side, ben. i don't think that using accessor methods for every instance variable is advisable. basicly it's a 2nd encapsulation of an attribute within an object that undermines the encapsulation that comes with oo design. i think in a good oo design one should think twice for every instance variable that gets an accessor. and it's the privilege of an object's methods to be able to write to instance variables directly. if one feels the urge to encapsulate an instance variable within an object, maybe it's time to write another class. g phil On Sat, Feb 02, 2008 at 02:54:04AM +0900, Day wrote: > In ZenTest 3.9.0's release notes > (http://blog.zenspider.com/archives/2008/01/zentest_version_390_has_been_released.html), > it says, "Cleaned out nearly every @ and use accessor methods instead. > You should too." > > ...