[Newbies] Smalltalk is a Mystery to Me
Randal L. Schwartz
merlyn at stonehenge.com
Sat Aug 23 05:10:24 UTC 2008
>>>>> "Todd" == Todd Blanchard <tblanchard at mac.com> writes:
Todd> north := OrderedCollection new.
Todd> south := OrderedCollection new.
Todd> east := OrderedCollection new.
Todd> west := OrderedCollection new.
Todd> trick := OrderedCollection new.
It's been my observation that similarly named variables that are acted upon in
similar ways really ought to be part of a common data structure rather than
unrelated variables.
hands := IdentityDictionary newFrom:
(#(north east south west trick) collect: [:each | each -> Set new]).
--
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<merlyn at stonehenge.com> <URL:http://www.stonehenge.com/merlyn/>
Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc.
See http://methodsandmessages.vox.com/ for Smalltalk and Seaside discussion
More information about the Beginners
mailing list