Clarify differences between built-in memoize and core.memoize "replacement"

Description

Due to differences in locking etc, there are some subtle differences in semantics between the clojure.core/memoize function and core.memoize/memo function, and these should be explained in the README.

Environment

None

Activity

Show:

Sean Corfield February 27, 2021 at 10:13 PM

README and docstring updated.

Sean Corfield February 27, 2021 at 9:57 PM

Confirmed that clojure.core/memoize can invoke the function multiple times for a given set of arguments when several concurrent calls occur but clojure.core.memoize/memo guards against that via locking. Will update the README (and the docstring) to clarify this.

Fixed

Details

Assignee

Reporter

Priority

Created August 13, 2018 at 6:01 PM
Updated February 27, 2021 at 10:13 PM
Resolved February 27, 2021 at 10:13 PM