Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Operator Overloading

Name: Anonymous 2007-08-19 22:01 ID:cGHmVo4b

What are your opinions? Use or don't use?

Name: Anonymous 2007-08-20 11:51 ID:vL3VEjyD

>>4
Yeah, this is the first example people ever mention. I've never heard of any others.

Even with vectors, you're left with the question as to what kind of product operator*() on them produces. Cross or dot product? Whut? Can't overload on return type you know, have to pick one and have a named method for the other... oh noes, java-style code! The horror.

Perhaps I'm just jaded. But I quite prefer to read code that means what it says, rather than having to deduce types yourself, types that may have been declared two screenfuls up, and then go to the appropriate spot in the appropriate doxygen (or what have you) autogenerated piece of shit manual. With C, or Java? You have a tags file for the source at hand. You move your cursor on top of the function call you're interested in and press the magic key(s) your editor wants. Abracadabra!

And don't get me started on Boost.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List