Precedence

Some of my colleagues seem to think that’s a cool thing to avoid parens ’cause they know the C++ operator precedence list by heart. Yuck. Would you know what *foobar->function() does, without looking it up? (Hint: It’s not intuitive)

Just use that damn parens.

Advertisements

Comments are closed.

Blog at WordPress.com.

Up ↑

%d bloggers like this: