ID:               50969
 User updated by:  sylvain at abstraction dot fr
 Reported By:      sylvain at abstraction dot fr
 Status:           Bogus
 Bug Type:         Feature/Change Request
 Operating System: all
 PHP Version:      5.3.2RC1
 New Comment:

I'm not particularly aware of operator overloading in other language
but I don't see why it would be less readable in PHP than in any other
language as the only way to know what is happening is to read the code
of the method overloading the operator.

Anyhow, do I have to take as official PHP Team position that you won't
implement it ?


Previous Comments:
------------------------------------------------------------------------

[2010-02-08 22:59:25] [email protected]

Operator overloading in a dynamically weak typed language is bad as
reading code gives no information what's happening. If you really want
it go to http://pecl.php.net/operator maybe that still works.

------------------------------------------------------------------------

[2010-02-08 22:49:23] sylvain at abstraction dot fr

Description:
------------
I would like to know what is the current PHP team position about
operator overloading in PHP for classes.

Operator overloading has been stated Bogus in
http://bugs.php.net/bug.php?id=9331 but it was more than two years ago.

I think it would be nice to have a discussion about that topic. If you
recently had one I would be interested if you could indicate me where I
can find it.

Best Regards.



------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=50969&edit=1

Reply via email to