inconsistent destructuring behaviour when using nested maps

Description

The way destructuring happens should not be affected by the fact that I have the same w at two-levels.
user>> (let [a :a b :b :as w} :c a1 :a b1 :b :as w} {:a 10 :b 20 :c {:a 30 :b 40] {:a a :b b :b1 b1 :a1 a1})
{:a 30, :b 40, :b1 40, :a1 30} <- unexpected behaviour.....

user>> (let [a :a b :b :as w} :c a1 :a b1 :b :as w1} {:a 10 :b 20 :c {:a 30 :b 40] {:a a :b b :b1 b1 :a1 a1})
{:a 30, :b 40, :b1 20, :a1 10} <- expected behaviour ..

Even having the :as things from both should not affet how others are destructured.. The email thread talking about the same is here

https://groups.google.com/forum/?fromgroups#!topic/clojure/3z3JtXhcDB0

Environment

This should happen on any system. I have tested it on macs in version 1.4 and 1.2.1

Attachments

1

Activity

Show:

Stuart Halloway May 18, 2012 at 3:11 PM

A less eye-bleeding example

Hubert Iwaniuk April 20, 2012 at 9:36 PM

Test to reproduce and clearly visualise this issue as well as code fixing it included.

Hubert Iwaniuk April 20, 2012 at 8:18 PM

Test to reproduce reported issue and code fixing it.

Completed

Details

Assignee

Reporter

Approval

Patch

Priority

Created April 19, 2012 at 7:55 AM
Updated May 19, 2012 at 2:36 AM
Resolved May 19, 2012 at 2:36 AM