Separating a Hash type from Object
Brad Fults
bfults at gmail.com
Sat May 5 16:58:57 PDT 2007
On 5/5/07, P T Withington <ptw at pobox.com> wrote:
> I agree with Neil. A sugarless dictionary is better than no
> dictionary at all.
>
> On 2007-05-05, at 17:40 EDT, Neil Mix wrote:
>
> > Has this thread dropped again? That's too bad. It seems like we
> > keep going in this circle:
> >
> > 1) we need a base Dictionary class
> > 2) in order to be successful, it needs "good UI" and perhaps weak refs
> > 3) there's no syntax proposed for this
> > 4) it's awfully late for any big changes anyway
> > 5) but we need a Dictionary class
> >
> > I take issue with #2. It's my impression that the veteran JS
> > developers on this list have all stated a strong desire for key-safe
> > storage, and I believe that they would all agree that a Dictionary
> > without syntactic sugar and weak refs is better than nothing at all.
> > Do any JS hackers here disagree?
> >
> > What is the danger in specifying a hobbled Dictionary class for now,
> > with the hope that better syntactical goodness and weak refs can be
> > added in a later version?
> >
I'm pretty sure I agree as well, but would like to see a clean
proposal for how exactly a "hobbled Dictionary class" would work.
Thanks.
--
Brad Fults
More information about the Es4-discuss
mailing list