[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: tri-condition
- From: Gavin Wraith <gavin@...>
- Date: Wed, 25 Oct 2006 20:06:17 +0100
In message <57a21f730610251113y3df1965i437da33d821d718e@mail.gmail.com>
you wrote:
> > -- Like C/Perl "cond ? a : b" operator, done using Lua scripts.
>
> maybe it's obvious, but one difference is that unlike C and Perl,
> tricond always evaluates both expressions?
>
> also, tricond doesn't seem to allow false and nil as the value of
> either expression?
See Exercise 1.4 in SICP.
--
Gavin Wraith (gavin@wra1th.plus.com)
Home page: http://www.wra1th.plus.com/