On 9/1/06, Phrogz <gavin / refinery.com> 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<b ? -1 : 0

I would do that as:

  resul = (a > b ? 1 : (a < b ? -1 : 0))

That's clearer to me, at least.

-austin
-- 
Austin Ziegler * halostatue / gmail.com * http://www.halostatue.ca/
               * austin / halostatue.ca * http://www.halostatue.ca/feed/
               * austin / zieglers.ca