ClojureScript

clojure.walk/walk does not descend into js-arrays or js-objects

Details

  • Type: Enhancement Enhancement
  • Status: Closed Closed
  • Priority: Minor Minor
  • Resolution: Declined
  • Affects Version/s: None
  • Fix Version/s: None
  • Component/s: None
  • Labels:
    None
  • Environment:
    r2127

Description

The clojure.walk/walk function does not descend into plain javascript objects and arrays--it'd be nice if it did using the same semantics as other collections.

I needed this functionality and ended up creating my own walk function. With a small patch I could add this to the native clojure.walk/walk, but I wanted to test interest here first.

Possibly the right thing to do instead is to make js-obj and array seqable?

Activity

Hide
David Nolen added a comment -

I'd rather see ClojureScript's walk be protocol-ized so that people can always solve this problem themselves.

Show
David Nolen added a comment - I'd rather see ClojureScript's walk be protocol-ized so that people can always solve this problem themselves.
Hide
David Nolen added a comment -

Closing.

Show
David Nolen added a comment - Closing.
David Nolen made changes -
Field Original Value New Value
Resolution Declined [ 2 ]
Status Open [ 1 ] Resolved [ 5 ]
David Nolen made changes -
Status Resolved [ 5 ] Closed [ 6 ]

People

Vote (0)
Watch (1)

Dates

  • Created:
    Updated:
    Resolved: