Re: overload operator<<
- From: Jon Skeet [C# MVP] <skeet@xxxxxxxxx>
- Date: Fri, 6 May 2005 22:29:50 +0100
Rick Elbers <rick.elbers@xxxxxxxxx> wrote:
> Interestingly people who used to cout a lot might
> feel the same way about your table << row;
Just because an operator has been abused in one language doesn't mean
it should be abused in others too. You can get used to any number of
things, but bad habits should be broken. << and >> are not "suck" or
"blow" operators - they're bitshifting operators. Their purpose is in
the specification. That's what they should be used for, and all they
should be used for.
If I got into a habit of naming all my C++ methods backwards, would
that make it a good idea to do in C# too? Nope - it just means it was a
bad idea even in C++.
--
Jon Skeet - <skeet@xxxxxxxxx>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too
.
- Follow-Ups:
- Re: overload operator<<
- From: Steve Richter
- Re: overload operator<<
- References:
- Re: overload operator<<
- From: Rick Elbers
- Re: overload operator<<
- Prev by Date: Re: Implicit overloads, non static
- Next by Date: Re: Implicit overloads, non static
- Previous by thread: Re: overload operator<<
- Next by thread: Re: overload operator<<
- Index(es):
Relevant Pages
|