Clojure

better error messages for bad defrecord calls

Details

  • Type: Enhancement Enhancement
  • Status: Open Open
  • Priority: Major Major
  • Resolution: Unresolved
  • Affects Version/s: None
  • Fix Version/s: None
  • Component/s: None
  • Approval:
    Triaged

Description

defrecord could tell you if, e.g., you didn't specify an interface before leaping into method bodies.

(defrecord TestRecord [afield bfield cfield] 
  (printc [_] (println cfield)))
ClassCastException clojure.lang.PersistentList cannot be cast to clojure.lang.Symbol  clojure.core/ns-resolve (core.clj:4238)

See http://groups.google.com/group/clojure/browse_thread/thread/f52f90954edd8b09

Activity

Alex Miller made changes -
Field Original Value New Value
Fix Version/s Backlog [ 10035 ]
Alex Miller made changes -
Priority Major [ 3 ]
Alex Miller made changes -
Labels defrecord errormsgs
Alex Miller made changes -
Approval Triaged [ 10120 ]
Description defrecord could tell you if, e.g., you didn't specify an interface before leaping into method bodies. See http://groups.google.com/group/clojure/browse_thread/thread/f52f90954edd8b09 defrecord could tell you if, e.g., you didn't specify an interface before leaping into method bodies.

{code}
(defrecord TestRecord [afield bfield cfield]
  (printc [_] (println cfield)))
ClassCastException clojure.lang.PersistentList cannot be cast to clojure.lang.Symbol clojure.core/ns-resolve (core.clj:4238)
{code}

See http://groups.google.com/group/clojure/browse_thread/thread/f52f90954edd8b09
Reporter Assembla Importer [ importer ]

People

Vote (0)
Watch (1)

Dates

  • Created:
    Updated: