Re: wacky object idea
| From: | Zeev Suraski | Date: | Tue, 29 Aug 2000 15:15:01 +0000 |
| Subject: | Re: wacky object idea | ||
| References: | 1 2 3 4 5 6 7 8 9 10 11 12 13 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-31077@lists.php.net to get a copy of this message | ||
At 14:34 29-08-00, Hartmut Holzgraefe wrote:
"Stig S. Bakken" wrote: Conclusion: if you want your code to be understood by others,These are more or less the only text-book examples that there are; It's no coincidence that these are ALWAYS the examples given for overloaded operators. For most part, operator overloading is bad, and if the price is losing 'neat' notation for complex numbers, it's a worthy price, IMHO. Zeev -- Zeev Suraski <zeev@zend.com> http://www.zend.com/avoid overloaded operators.... unless you are creating classes for complex or big numbers,vectors, matrices or similar numeric things, and thats where java fails ever so badly, whatever excuses they might give ... :(