ClojureScript

defining zero-arity protocol method produces incomprehensible error message

Details

  • Type: Defect Defect
  • Status: Open Open
  • Priority: Minor Minor
  • Resolution: Unresolved
  • Affects Version/s: None
  • Fix Version/s: None
  • Component/s: None
  • Labels:
    None
  • Environment:
    Clojurescript 0.0-1913

Description

In Clojure:
> (defprotocol P (f []))
IllegalArgumentException Protocol fn: f must take at least on arg [...]

In ClojureScript
> (defprotocol P (f []))
[ 100 lines of incomprehensible stack traces ]

Would be nice if it gave a better error message.

  1. cljs-622-20131104.diff
    04/Nov/13 9:21 AM
    2 kB
    Travis Thieman
  2. protocol-warning-20131017.diff
    17/Oct/13 11:02 AM
    1 kB
    Travis Thieman
  3. protocol-warning-20131017-2.diff
    17/Oct/13 3:59 PM
    2 kB
    Travis Thieman
  4. protocol-warning-20131018.diff
    18/Oct/13 10:05 AM
    1 kB
    Travis Thieman

Activity

People

Vote (0)
Watch (2)

Dates

  • Created:
    Updated: