Coffeehouse Post

Single Post Permalink

View Thread: I'm going back to VS2008
  • User profile image

    Shining Arcanine said:
    Dr Herbie said:

    Ah, okay. I misread it as being (even == !even). I need to start writing some C code. I have not had a reason to write it in a while. :/

    It's probably not particularly good practice though. A side-effecting expression as a test for the ternary operator. On the other hand, in this case, it's sufficiently clear what's going on. I like it for its succintness and apparent elegance and dislike it for its impurity; ambivalence, here I come.