Re: [racket-dev] hashes in ASL
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 to create an empty hash table and update it. Furthermore, many algorithms begin with an empty hash table. This argument strikes me as entirely gratuitous...but maybe there's some bigger picture of ASL I'm missing. Shriram _ For list-related administrative tasks: http://lists.racket-lang.org/listinfo/dev -- Jay McCarthy j...@cs.byu.edu Assistant Professor / Brigham Young University http://teammccarthy.org/jay The glory of God is Intelligence - DC 93 _ For list-related administrative tasks: http://lists.racket-lang.org/listinfo/dev
Re: [racket-dev] hashes in ASL
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? 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 left out to make the addition smaller and simpler. They can be added if you think it is important. [Ditto with your previous email about the optional argument to the constructors. I was waiting to respond with Done.] Jay On Tue, Aug 24, 2010 at 10:09 AM, Shriram Krishnamurthi s...@cs.brown.edu wrote: 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-related administrative tasks: http://lists.racket-lang.org/listinfo/dev -- Jay McCarthy j...@cs.byu.edu Assistant Professor / Brigham Young University http://teammccarthy.org/jay The glory of God is Intelligence - DC 93 -- Jay McCarthy j...@cs.byu.edu Assistant Professor / Brigham Young University http://teammccarthy.org/jay The glory of God is Intelligence - DC 93 _ For list-related administrative tasks: http://lists.racket-lang.org/listinfo/dev
Re: [racket-dev] hashes in ASL
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, list, which gives list provided from racket/base, racket list provided from r5rs list provided from rnrs/base-6 list provided from lang/htdp-advanced and much more. So that's the sense in which it (and other hash functions) are missing from the docs. [Were, I haven't tried your latest push.] 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 left out to make the addition smaller and simpler. Yeah, but that just misses too many use cases. Since the language is already mutative, I see nothing gained. Thanks for the new push. Shriram _ For list-related administrative tasks: http://lists.racket-lang.org/listinfo/dev
Re: [racket-dev] hashes in ASL
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 left out to make the addition smaller and simpler. They can be added if you think it is important. [Ditto with your previous email about the optional argument to the constructors. I was waiting to respond with Done.] Jay On Tue, Aug 24, 2010 at 10:09 AM, Shriram Krishnamurthi s...@cs.brown.edu wrote: 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-related administrative tasks: http://lists.racket-lang.org/listinfo/dev -- Jay McCarthy j...@cs.byu.edu Assistant Professor / Brigham Young University http://teammccarthy.org/jay The glory of God is Intelligence - DC 93 _ For list-related administrative tasks: http://lists.racket-lang.org/listinfo/dev
[racket-dev] hashes in ASL
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 as entirely gratuitous...but maybe there's some bigger picture of ASL I'm missing. Shriram _ For list-related administrative tasks: http://lists.racket-lang.org/listinfo/dev