POV-Ray : Newsgroups : povray.off-topic : Games programmers : Re: Games programmers Server Time
7 Sep 2024 13:23:32 EDT (-0400)
  Re: Games programmers  
From: Warp
Date: 13 Sep 2008 03:40:42
Message: <48cb6e79@news.povray.org>
Orchid XP v8 <voi### [at] devnull> wrote:
> >> What insane nutcase thought that making assignment an expression as a 
> >> good idea? Seriously, WTF? That's excellent. So if I say "if (x = 5)..." 
> >> then my program will silently fail to work correctly, and I'll probably 
> >> spend hours if not days trying to figure out why.
> > 
> >   Use a proper compiler.

> How does that help?

  The compiler warns you that the sentence looks suspicious.

> >> Boolean operators and bitwise operators. Which is which? Which ones are 
> >> the short-circuit ones, and which aren't? I can never remember.
> > 
> >   Says the person who has probably memorized over half of the most
> > obscure functions and tricks in haskell.

> In Haskell, 1) you don't need the non-shortcut versions at all, and 2) 
> if you use a bitwise operator where a Boolean operator is expected (or 
> vice versa), you'll get a compile-time error telling you of your 
> mistake.

  You missed my point.

-- 
                                                          - Warp


Post a reply to this message

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