dash.el icon indicating copy to clipboard operation
dash.el copied to clipboard

Allow nested destructuring with key->key

Open Fuco1 opened this issue 5 years ago • 4 comments

(-let (((&plist :foo->:bar value) (list :foo (list :bar "x"))))
  (message "value is %s" value))

;; should also work like this to support "string"->"keys"
(-let (((&plist :foo -> :bar value) (list :foo (list :bar "x"))))
  (message "value is %s" value)

We can also think about a different delimiter, but not . because that is the cons read syntax.

Fuco1 avatar Feb 27 '19 10:02 Fuco1