Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!usc!petunia!news From: mjohnson@sirius.acs.calpoly.edu (Mark S. Johnson) Newsgroups: comp.lang.smalltalk Subject: Re: Access methods - New feature ? Message-ID: <2813c1c8.5a14@petunia.CalPoly.EDU> Date: 23 Apr 91 05:10:32 GMT References: <1991Apr21.221149.8057@vuse.vanderbilt.edu> Distribution: usa Organization: Mechanical Engrg. Dept., California Poly. State U., SLO Lines: 25 As a relative newcomer to Smalltalk, I am very interested in this debate. I'd like to start some serious coding in the near future and I'd like to get off on the right foot "stylistically." I tend to agree with the folks who oppose access methods, but what about when using simple "readonly" methods to extract information from a "record-like" object? If the object Mark below is a "record-like" object containing personal information about me, what's wrong with this type of access Mark eyeColor to check my eye color? Note that Mark does not necessarily have an instance variable named eyeColor. Am I being a dope about this? As an aid to me learning Smalltalk in a vacuum, can anyone recommend a Smalltalk "style guide" which addresses these issues? Thanks for listening, Mark -- Mark S. Johnson mjohnson@stn9.me.calpoly.edu (129.65.19.9)