ClojureScript

Keyword used as function do not return default value when first argument does not satisfy ILookup

Details

  • Type: Defect Defect
  • Status: Closed Closed
  • Priority: Minor Minor
  • Resolution: Completed
  • Affects Version/s: None
  • Fix Version/s: None
  • Component/s: None
  • Labels:
    None

Description

In Clojure, (:test "" 1) returns 1 while in ClojureScript it returns nil. Note that (get "" :test 1) returns 1 in both environment.

Activity

Julien Eluard made changes -
Field Original Value New Value
Summary Keyword used as function do not return default value when first argument does not satisfies ILookup Keyword used as function do not return default value when first argument does not satisfy ILookup
Julien Eluard made changes -
Attachment cljs_ticket_595.patch [ 12277 ]
David Nolen made changes -
Resolution Completed [ 1 ]
Status Open [ 1 ] Resolved [ 5 ]
David Nolen made changes -
Status Resolved [ 5 ] Closed [ 6 ]

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: