Anyone who has a good working example of this can add it to
clojuredocs.orgin a few minutes, if they are so inclined:

    http://clojuredocs.org/clojure_core/clojure.core/case

I know that within 5 seconds of reading this one or more people will
complain that the site is out of date.  It is true that its doc strings and
source code are for Clojure 1.3, but the examples are free form and can say
whatever you want, and there is very useful info in those examples that
applies to Clojure 1.4, 1.5.1, and the forthcoming 1.6 just as well.

Andy


On Fri, Feb 28, 2014 at 9:36 AM, Herwig Hochleitner
<hhochleit...@gmail.com>wrote:

> 2014-02-28 17:21 GMT+01:00 Ambrose Bonnaire-Sergeant <
> abonnaireserge...@gmail.com>:
>
> (defmacro motion-case [...]
>>   `(case ..
>>      ~MotionEvent/ACTION_POINTER_DOWN ...
>>      ~MotionEvent/ACTION_UP ...
>> ))
>>
>
> That's a neat trick! Didn't know case could do this.
>
> Wouldn't it be great to mention this in the docs + the class of values for
> which this is legal, i.e. roughly those with a stable hash?
>
> cheers
>
> --
> 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/groups/opt_out.
>

-- 
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/groups/opt_out.

Reply via email to