You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 28, 2019. It is now read-only.
clojure.core/let (okay really clojure.core/destructure) makes some assumptions about how do to map destructuring on things which happen to be sequences. Tagged values happen to be both maps (Associative) and sequences. destructure assumes that if you're trying to use map destructuring and the value is a sequence, then you need to construct a map from the sequence. This conditional would be better expressed as "if using map destructuring on something that isn't a map, make a map" rather than "if you have a sequence, make a map" because being sequencey is orthogonal to being mappy whereas not being mappy is a clear case.
Not sure if monkeypatching destructure will actually work because it's a macro, which means all existing expansions of it are "stale" and won't reflect the patch.
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
clojure.core/let
(okay reallyclojure.core/destructure
) makes some assumptions about how do to map destructuring on things which happen to be sequences. Tagged values happen to be both maps (Associative
) and sequences.destructure
assumes that if you're trying to use map destructuring and the value is a sequence, then you need to construct a map from the sequence. This conditional would be better expressed as "if using map destructuring on something that isn't a map, make a map" rather than "if you have a sequence, make a map" because being sequencey is orthogonal to being mappy whereas not being mappy is a clear case.Not sure if monkeypatching
destructure
will actually work because it's a macro, which means all existing expansions of it are "stale" and won't reflect the patch.The text was updated successfully, but these errors were encountered: