This came up in 2014 on the mailing list
https://groups.google.com/forum/m/#!topic/clojure/3yGjDO2YnjQ

And resulting enhancement requests Alex asked for:
https://dev.clojure.org/jira/browse/CLJ-1367
https://dev.clojure.org/jira/browse/CLJ-1368

For what it's worth (though I realise we don't want to break back
compatibility), I find the clojure behavior v surprising given that the
parallel switch/case in Java is so frequently used for exactly this sort of
const jump table. Intuitively it makes no sense for me that in this one
statement you would compare the symbol and not the const value. It actively
discourages naming magic constants if you don't want to fall back to slower
condp or a map lookup.

Adam

On Sun, 25 Jun 2017, 10:53 p.m. David Nolen, <dnolen.li...@gmail.com> wrote:

> On Sat, Jun 24, 2017 at 1:49 PM, Matching Socks <phill.w...@gmail.com>
> wrote:
>
>>
>> At any rate, I would like to put in either a documentation issue (if it's
>> a feature that ClojureScript's "case" does not work like Clojure's) or else
>> a defect issue (if it's a bug).
>>
>
> As I stated earlier, we're not going to remove it nor change the existing
> behavior in anyway whatsoever. And yes it will get documented.
>
> David
>
> --
> 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
> ---
> You received this message because you are subscribed to the Google Groups
> "Clojure" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to clojure+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to