Skip to content

Associative destructuring example fails on 1.13 Alpha 6 #753

Description

@seancorfield
(def client {:name "Super Co."
             :location "Philadelphia"
             :description "The worldwide leader in plastic tableware."})

(let [{category :category, :or {category "Category not found", :comms "email"}, :defaults df} client]
  (println df))

This works on Alpha 5 but fails on Alpha 6 because :comms is not bound or referenced.

Adding :keys [& :comms] makes it work on Alpha 6.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions