POV-Ray : Newsgroups : povray.off-topic : Unexpected : Re: Unexpected Server Time
28 Jul 2024 22:28:22 EDT (-0400)
  Re: Unexpected  
From: Samuel Benge
Date: 18 Aug 2013 15:25:00
Message: <web.52111f00825e3e9f51343230@news.povray.org>
Orchid Win7 v1 <voi### [at] devnull> wrote:
> On 17/08/2013 08:15 PM, Samuel Benge wrote:
> > return x*(1-2*(x<0));
>
> Well, I mean, the "obvious" way is
>
>    if (x<0) return -x; else return x;

Obviously.

The method I posted isn't the "scariest" or "craziest," I'll admit. It would be
hard to beat the job applicants' answers, what with their hapless ingenuity and
all.

> > Thanks for the laughs, btw :) When Haskell isn't the main subject, you're
> > actually pretty funny ;)
>
> If you wanted to find crazy ways to do this in Haskell, you would have
> some pretty scary options available... ;-)

If you're trying to convince me Haskell is somehow worth my time, you're not
succeeding :-P


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.