Good point Ben. That change was obviously ill-conceived.

On May 25, 7:16 am, B Smith-Mannschott <bsmith.o...@gmail.com> wrote:
> On Mon, May 24, 2010 at 05:41, Drew Colthorp <dcolth...@gmail.com> wrote:
> > A few weeks ago I announced a pattern matching library called
> >matchure. I'm excited to say it's being merged into clojure.contrib as
> > clojure.contrib.match. I'd like some feedback on ideas for some
> > backward-incompatible changes I'm planning to make before it's
> > actually pushed to clojure.contrib.
>
> > In the discussion below, I'll use "matchure" when I'm speaking of the
> > current behavior, and "clojure.contrib.match" when I'm describing
> > proposed behavior of the library when it's merged in. See
> >http://github.com/dcolthorp/matchure/blob/master/README.mdfor an
> > introduction tomatchureand the existing syntax, though I'll describe
> > the relevant before and after behaviors below.
>
> > Change 1: {:foo #"bar"} becomes {#"bar" :foo}
>
> > Inmatchure, maps test against the values of corresponding keys. I'm
> > going to change this so that the pattern is first and the key
> > second. This makes the behavior closer to let, makes
> > clojure.contrib.match more consistent in that patterns will always be
> > to the left of the matched value, and patterns like {even? :foo} read
> > better. This seems like an easy decision.
>
> This strikes me as an odd change. Did you overlook the fact that map
> keys have to be unique?
>
> {even? :foo,
>  even? :bar}
>
> Might read nicely, but will it work?
>
> // Ben
>
> --
> You received this message because you are subscribed to the Google
> Groups "Clojure" group.
> To post to this group, send email to clojure@googlegroups.com
> Note that posts from new members are moderated - please be patient with your 
> first post.
> To unsubscribe from this group, send email to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group 
> athttp://groups.google.com/group/clojure?hl=en

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Reply via email to