Clojure

defmulti doc string doesn't mention needing to be passed a var for the value of :hierarchy

Details

  • Type: Defect Defect
  • Status: Open Open
  • Priority: Minor Minor
  • Resolution: Unresolved
  • Affects Version/s: Release 1.2
  • Fix Version/s: None
  • Component/s: None
  • Labels:
    None
  • Environment:
    1.2, 1.3 beta3
  • Patch:
    Code
  • Approval:
    Incomplete

Description

The :hierarchy option for defmulti should be passed a var, but this is not mentioned in the doc string.

The error message from passing the hierarchy directly is rather cryptic:

Evaluation aborted on java.lang.ClassCastException: clojure.lang.PersistentArrayMap cannot be cast to clojure.lang.IRef (SOURCE_FORM_44:19).

Activity

People

Vote (1)
Watch (2)

Dates

  • Created:
    Updated: