Clojure

Make identical? variadic

Details

  • Type: Enhancement Enhancement
  • Status: Open Open
  • Priority: Minor Minor
  • Resolution: Unresolved
  • Affects Version/s: Release 1.5
  • Fix Version/s: None
  • Component/s: None
  • Labels:
    None
  • Patch:
    Code and Test
  • Approval:
    Triaged

Description

(= 1 1 1) ;; => true
(= 1 1 2) ;; => false
(== 1 1 1) ;; => true
(== 1 1 2) ;; => false
(identical? 1 1 1) ;; ArityException Wrong number of args (3) passed to: core$identical-QMARK- clojure.lang.AFn.throwArity (AFn.java:437)

I think it would make far more sense to make identical? consistent with all other comparison operators
and allow it to take variadic number of arguments.

Activity

Tassilo Horn made changes -
Field Original Value New Value
Attachment 0001-CLJ-1219-make-identical-variadic.patch [ 12224 ]
Tassilo Horn made changes -
Labels patch test
Tassilo Horn made changes -
Tassilo Horn made changes -
Attachment 0001-CLJ-1219-make-identical-variadic.patch [ 12224 ]
Alex Miller made changes -
Patch Code and Test [ 10002 ]
Labels patch test
Alex Miller made changes -
Approval Triaged [ 10120 ]
Alex Miller made changes -
Priority Major [ 3 ] Minor [ 4 ]

People

Vote (2)
Watch (0)

Dates

  • Created:
    Updated: