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)

Idiom to fetch key and datum Takeshi Abe 07 Sep 2015 08:25 UTC

Hi,

Just a minor point, but can the idiom code
(let ((key (ephemeron-key ephemeron))
      (datum (ephemeron-datum ephemeron)))
  (if (ephemeron-broken? ephemeron)
      ... broken case ...
      ... code using key and datum ...))
be:
(let ((key (ephemeron-key ephemeron)))
  (if (ephemeron-broken? ephemeron-broken)
      ... broken case ...
      (let ((datum (ephemeron-datum ephemeron)))
        ... code using key and datum ...)))
in order to spare the useless access to datum when the ephemeron
has already been broken?

Cheers,
-- Takeshi Abe