On Oct 9, 2008, at 5:29 PM, Dmitri P wrote:

> Allow cond-like specification of expression pairs and allow odd number
> of expressions. Let odd expressions in last position serve as default
> return value. There will be no impact on previous reading/writing of
> "if". Stolen from Paul Graham's Arc.
>
> (defmacro myif
>       ([x] x)
>       ([x y] (if x y))
>       ([x y & z] (if x y `(myif [EMAIL PROTECTED]))))

I like it.

One kind of amazing cool thing about Clojure's implementation is that  
implementing it for Clojure's "if" requires the addition of only about  
10 lines of code. Wow.

Clojure: Chock-full of Lispy goodness!

--Steve


--~--~---------~--~----~------------~-------~--~----~
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
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/clojure?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to