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 s...@cs.brown.edu 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

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 jay.mccar...@gmail.com wrote: What documentation are you looking at?

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, say,

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-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