And I'd guess you just totally blew the newbies input buffer with conceptual overload when he was just trying to get one thing working.

On Aug 22, 2008, at 10:10 PM, Randal L. Schwartz wrote:

"Todd" == Todd Blanchard <[EMAIL PROTECTED]> 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
<[EMAIL PROTECTED]> <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

_______________________________________________
Beginners mailing list
[email protected]
http://lists.squeakfoundation.org/mailman/listinfo/beginners

Reply via email to