opensubscriber
   Find in this group all groups
 
Unknown more information…

m : mit-scheme-devel@gnu.org 27 May 2011 • 12:29AM -0400

Re: [MIT-Scheme-devel] hash-table/modify! and hash-table/intern!
by Chris Hanson

REPLY TO AUTHOR
 
REPLY TO GROUP




Sounds good to me.

On Wed, May 25, 2011 at 11:09 AM, Taylor R Campbell <campbell@mumb...> wrote:
> Currently these usually look like:
>
>   (hash-table/modify! hash-table key
>     (lambda (datum)
>       ...
>         here goes
>         a big, horrible
>         hairy, gigantic
>         expression
>       ...)
>     tiny)
>
>   (hash-table/intern! hash-table key
>     ;; Gotta cons a closure here.
>     (lambda ()
>       (make-foo key)))
>
> I'd rather that they look like:
>
>   (hash-table/modify! hash-table key tiny
>     (lambda (datum)
>       big huge horrible hairy expression))
>
>   (hash-table/intern! hash-table key make-foo)
>
> Currently they're not documented, so maybe we can get away with
> changing them.  Alexey has been threatening to update the hash table
> documentation, and even sent me some patches, so now seems like a good
> time.  Incidentally, there's even a (vestigial) redefinition in
> edwin/nntp.scm of HASH-TABLE/MODIFY! with the argument order I prefer.
>
> Comments?  Flames?
>
> (The real problem is that we don't have any reasonable way to handle
> API and ABI compatibility.  Some day, perhaps...)
>
> _______________________________________________
> MIT-Scheme-devel mailing list
> MIT-Scheme-devel@gnu....
> https://lists.gnu.org/mailman/listinfo/mit-scheme-devel
>

_______________________________________________
MIT-Scheme-devel mailing list
MIT-Scheme-devel@gnu....
https://lists.gnu.org/mailman/listinfo/mit-scheme-devel

Bookmark with:

Delicious   Digg   reddit   Facebook   StumbleUpon

Related Messages

opensubscriber is not affiliated with the authors of this message nor responsible for its content.