Idiom to fetch key and datum Takeshi Abe (07 Sep 2015 08:25 UTC)
Re: Idiom to fetch key and datum John Cowan (07 Sep 2015 17:58 UTC)
Re: Idiom to fetch key and datum taylanbayirli@xxxxxx (07 Sep 2015 18:13 UTC)
Re: Idiom to fetch key and datum John Cowan (07 Sep 2015 18:23 UTC)
Re: Idiom to fetch key and datum taylanbayirli@xxxxxx (07 Sep 2015 19:40 UTC)

Re: Idiom to fetch key and datum John Cowan 07 Sep 2015 18:23 UTC

Taylan Ulrich Bayırlı/Kammer scripsit:

> It might be a good idea to encode the pattern into the API:

I think that's right, but I don't think you go far enough.  How
about this macro?

(ephemeron-if <eph-expr>
  ((<key-id> <value-id>) <expr> ...)
  (else <expr> ...))

I would be happy to include that in the next draft.

--
John Cowan          http://www.ccil.org/~cowan        xxxxxx@ccil.org
Using RELAX NG compact syntax to develop schemas is one of the simple
pleasures in life....          --Jeni Tennison