Christopher Dicely
2/17/2008 6:03:00 AM
Since the main use is lookup by reference, and hash is designed for
keyed access, hash would seem to be the natural container to use. I'm
not sure I quite get what you are saying about iterating through a
singleton instead, could you explain a little more?
On Feb 16, 2008 6:35 PM, Thufir <hawat.thufir@gmail.com> wrote:
> On Feb 16, 9:22 am, Christopher Dicely <cmdic...@gmail.com> wrote:
> > Looking through that, there are a few things that jump out:
> >
> > 1. You've got a bunch of rooms that you reference by symbols, and you
> > are storing them in an Array. You might want to look into changing
> > this to a Hash keyed by the reference.
> [...]
>
> Actually, an array makes sense to me. Can you explain the advantages
> of a Hash? With an array, the array can later be made to a Singleton
> which could be iterated through.
>
>
> -Thufir
>
>