From: Martin DeMello Date: 2006-09-02T04:53:38+09:00 Subject: Re: When clever is stupid [RANT] On 9/2/06, Martin DeMello wrote: > On 9/2/06, Phrogz wrote: > > The one exception I would list is something like a chained comparison. > > For example, a JavaScript implementation of the spaceship operator: > > > > result = a>b ? 1 : a > I like the "case true" idiom here: Oops - missed the "javascript" bit. martin