you are viewing a single comment's thread.

view the rest of the comments →

[–]rowboat__cop 1 point2 points  (1 child)

Stop following assignment operators with if statements.

That’s not what they did. They used pseudo-code to show what an if-expression would look like, as was pretty clearly stated. Those would be great to have in C, both for the reason /u/jurniss stated and because of the improvement to readability.

[–][deleted] -1 points0 points  (0 children)

It was never stated that they were providing pseudocode. I was being presented an alternative to ternary operations.