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

Meikel Brandmeyer made changes -
Field Original Value New Value
Attachment 0001-Clarify-docstring-for-defmulti.patch [ 10361 ]
Scott Lowe made changes -
Scott Lowe made changes -
Patch Code [ 10001 ]
Rich Hickey made changes -
Approval Vetted [ 10003 ]
Fix Version/s Release 1.5 [ 10150 ]
Fogus made changes -
Approval Vetted [ 10003 ] Incomplete [ 10006 ]
Rich Hickey made changes -
Fix Version/s Release 1.5 [ 10150 ]

People

Vote (1)
Watch (2)

Dates

  • Created:
    Updated: