[Newbies] Smalltalk is a Mystery to Me
Todd Blanchard
tblanchard at mac.com
Sat Aug 23 05:47:15 UTC 2008
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 <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