SLUG Mailing List Archives
Re: [coders] RubySIG Lesson Code
- To: coders@xxxxxxxxxxx
- Subject: Re: [coders] RubySIG Lesson Code
- From: John Clarke <johnc+slug@xxxxxxxxxxx>
- Date: Wed, 14 Jun 2006 08:51:12 +1000
- User-agent: Mutt/18.104.22.168i
On Wed, Jun 14, 2006 at 08:02:43 +1000, James Crisp wrote:
> Erik de Castro Lopo wrote:
> > 4/ Ocaml lets you set a value based on the result of an if statment.
> Ruby also lets you do this, as the 'if' statement is an expression. Eg,
You can do the same in C/C++:
const int x = remainder > 2 ? 5 : 0;
Conspiracies abound: If everyone's against you, the reason can't
*possibly* be that you're a fuckhead.
-- Joe Talmadge in The Flamer's Bible