SB>> patch [1] by Johannes Schl?ter that has been floating around for a
SB>> while?

1. I personally don't think operator overloading is a good idea. It 
doesn't add you anything you couldn't do without it the same way - it's 
pure syntax sugar. And it really ruins the readability of the code - go 
figure what $i++ means now, in absence of any type delcarations.

2. The referenced patch raises doubts - why it allows to override / but
not %, for example? What with all other operators? Why add would work as
$foo + 1, but 1 + $foo won't? Will + be non-commutative operation from now
on? What with assign-ops - it would leak memory in this case?

-- 
Stanislav Malyshev, Zend Products Engineer   
[EMAIL PROTECTED]  http://www.zend.com/ +972-3-6139665 ext.115

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to