From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 109fba,b87849933931bc93 X-Google-Attributes: gid109fba,public X-Google-Thread: fac41,b87849933931bc93 X-Google-Attributes: gidfac41,public X-Google-Thread: 1108a1,b87849933931bc93 X-Google-Attributes: gid1108a1,public X-Google-Thread: 103376,b87849933931bc93 X-Google-Attributes: gid103376,public X-Google-Thread: 114809,b87849933931bc93 X-Google-Attributes: gid114809,public From: David N. Smith Subject: Re: OO, C++, and something much better! Date: 1997/01/25 Message-ID: <5cdjkq$1dk3@watnews1.watson.ibm.com>#1/1 X-Deja-AN: 212304447 distribution: world references: <5buodl$bci@boursy.news.erols.com> <32E99B11.1E59@parcplace.com> <32E99D64.DB6@parcplace.com> <32E8AEF1.31CC@iam.unibe.ch> content-type: text/plain; charset=ISO-8859-1 organization: IBM T J Watson Research Center mime-version: 1.0 newsgroups: comp.lang.c++,comp.lang.smalltalk,comp.lang.eiffel,comp.lang.ada,comp.object Date: 1997-01-25T00:00:00+00:00 List-Id: In article , traymond@craftedsmalltalk.com writes: >Sure, smalltalk programmers can index into the wrong array. Just an aside, but Smalltalk programmers index arrays much less often than C++ programmers for two reasons: (1) Smalltalk supports a nice set of other collections; arrays are not used as often because better collections exist. Many of these do not even allow indexing. (2) Smalltalk programmers use various kinds of 'iterators' in which Smalltalk does the iteration. I always look at places where I have to hand index a collection as a place where I've probably not done things right. It's a red (or at least orange) flag. Dave _____________________________________________ David N. Smith IBM T J Watson Research Center, Hawthorne, NY Mailto: dnsmith@watson.ibm.com Home Page: http://www.dnsmith.com/ _____________________________________________ Any opinions or recommendations are those of the author and not of his employer.