clj-commons / manifold

A compatibility layer for event-driven abstractions
1.02k stars 107 forks source link

loop destructuring is not standard clojure destructuring #98

Closed vspinu closed 8 years ago

vspinu commented 8 years ago

I cannot use & in loop bindings:

(d/loop [[a & b] [1 2 3]]
  [a b])

throws Unable to resolve symbol: & in this context.

lvh commented 8 years ago

This can presumably be solved by using the (undocumented) clojure.core/destructure.

ztellman commented 8 years ago

That was my plan, but I've got sidetracked on my Strange Loop talk and haven't had a chance to implement it myself. Pull requests welcome, etc.