Skip to content
This repository was archived by the owner on Jan 28, 2019. It is now read-only.
This repository was archived by the owner on Jan 28, 2019. It is now read-only.

Monkey patch let? #8

@arrdem

Description

@arrdem

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions