Email list hosting service & mailing list manager


Re: Fwd: [srfi-126] Draft #3. (#2) taylanbayirli@xxxxxx 12 Sep 2015 07:12 UTC

"Arthur A. Gleckler" <xxxxxx@speechcode.com> writes:

> These changes have been published as draft #3:
>
> From: TaylanUB
> Date: Fri, Sep 11, 2015 at 4:04 PM
> Subject: [srfi-126] Draft #3. (#2)
>
> Commit Summary
>
> * Refine terminology ("function" -> "procedure").
> * Correct wording, since we're not in an RnRS.
> * List inclusion criteria for utility procedures.
> * (Un)specify return values of for-each and map!.
> * Use consistent wording: "hash function".
> * Specify external representation.
> * Add hashtable-clear-copy.
> * Specify quasiquote semantics on hashtables.
> * Make weakness support optional.
> * Don't abuse the 'k' argument name.
> * Add -prune!, -find, and -search.
> * Augment samples in implementation section.
>
> File Changes
>
> * M srfi-126.html (152)
> * M srfi-126.md (289)

I made too many changes late at night and ended up providing somewhat
strange definitions for hashtable-find and hashtable-search.

Currently I'm thinking of dropping -search and generalizing -find to:

  - (hashtable-find proc hashtable)

  Applies proc to associations in hashtable in an unspecified order until
  one of the applications returns a true value.  Returns three values:
  the key and value of the matched entry or unspecified values if none
  matched, and a Boolean indicating whether any matched.

Comments welcome.

Taylan