Re: [racket-dev] hashes in ASL

2010-08-25 Thread Shriram Krishnamurthi
Catching up ... > What documentation are you looking at? > > http://docs.racket-lang.org/htdp-langs/advanced-prim-ops.html#(part._(lib._htdp-advanced..ss._lang)._.Hash_.Tables) If I type "hash" in the Help Desk, I get hash provided from racket/base, racket but not from ASL, in contrast to, s

Re: [racket-dev] hashes in ASL

2010-08-25 Thread Jay McCarthy
Just pushed an update with optional argument constructors and immutable hash operations. Jay On Tue, Aug 24, 2010 at 11:36 AM, Jay McCarthy wrote: > What documentation are you looking at? > > http://docs.racket-lang.org/htdp-langs/advanced-prim-ops.html#(part._(lib._htdp-advanced..ss._lang)._.Ha

Re: [racket-dev] hashes in ASL

2010-08-25 Thread Jay McCarthy
This change will be pushed momentarily. Jay On Sat, Aug 21, 2010 at 7:04 PM, Shriram Krishnamurthi wrote: > Why does make-hash require one argument, rather than just taking zero > like make-hash in Racket does?  ASL is anyway a language with state, > so it's perfectly meaningful to create an em

Re: [racket-dev] hashes in ASL

2010-08-24 Thread Jay McCarthy
What documentation are you looking at? http://docs.racket-lang.org/htdp-langs/advanced-prim-ops.html#(part._(lib._htdp-advanced..ss._lang)._.Hash_.Tables) As far as the immutable functions, when I sent you the list of the functions I intended to add, those were not on it. They were intentionally

[racket-dev] hashes in ASL

2010-08-24 Thread Shriram Krishnamurthi
Hashes seem to have been added to ASL in a haphazard way. For some reason the MUTABLE hash operations are present, but not the IMmutable ones. Also, the docs don't seem to reflect their existence. Anyone? (Jay, did you push this?) _ For list-rel

[racket-dev] hashes in ASL

2010-08-21 Thread Shriram Krishnamurthi
Why does make-hash require one argument, rather than just taking zero like make-hash in Racket does? ASL is anyway a language with state, so it's perfectly meaningful to create an empty hash table and update it. Furthermore, many algorithms begin with an empty hash table. This argument strikes me