Re: "if" small syntax change proposal

2008-10-10 Thread Jeff V
t;[EMAIL PROTECTED]> Sent: Friday 10 October 2008 03:59 To: Clojure Cc: Subject: Re: "if" small syntax change proposal > > On Oct 9, 10:29 pm, Dmitri P <[EMAIL PROTECTED]> wrote: > > Allow cond-like specification of expression pairs and allow odd number > &g

Re: "if" small syntax change proposal

2008-10-10 Thread James Reeves
On Oct 9, 10:29 pm, Dmitri P <[EMAIL PROTECTED]> 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 G

Re: "if" small syntax change proposal

2008-10-09 Thread Stephen C. Gilardi
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

Re: "if" small syntax change proposal

2008-10-09 Thread Frantisek Sodomka
Looks that this 'if works the same: http://www.newlisp.org/downloads/newlisp_manual.html#if Frantisek PS: There are some very nice functions in newLISP. We could borrow from it too :-) On Thu, 09 Oct 2008 23:29:55 +0200, Dmitri P <[EMAIL PROTECTED]> wrote: > > Allow cond-like specification

"if" small syntax change proposal

2008-10-09 Thread Dmitri P
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