Refactoring of find-and-cache-best-method

Description

find-and-cache-best-method was pretty messy and confusing. cache reset is done in -get-method fn itself and it was basically a dead code. find-best-method is the replacement of it and operates with immutable data instead of internal multimethod's mutable state.
prefers* function didn't mutate the atom too, so now it takes an immutable value.
dominates is now an internal helper of find-best-method since it is private and not used by anything else.

Environment

None

Attachments

1

Activity

Show:

Mike Fikes November 20, 2017 at 1:43 AM

Patch no longer applies; needs re-baseline.

Details

Assignee

Reporter

Patch

Code

Priority

Created October 5, 2016 at 9:56 PM
Updated November 20, 2017 at 1:43 AM