[Tutor] Operator Overloading Importance
Remco Gerlich
scarblac@pino.selwerd.nl
Wed, 27 Feb 2002 10:06:59 +0100
On 0, Remco Gerlich <scarblac@pino.selwerd.nl> wrote:
> I don't think it's very important. I've never used it yet.
(snip)
> If you have objects on which these operations are natural, data that you
> will want to add routinely, etc, then I guess it's useful. It's useful to
> know that it is possible.
That said, I just decided that the code I was currently staring at, that
combines two representation instances into a new one (complicated vectors of
word count statistics from a text) would be a lot neater if I called the
method __add__ so I could just write r = r1+r2 :-)
--
Remco Gerlich