Hi,

On Thu, 2014-09-25 at 12:22 +0200, Florian Margaine wrote:
> Joe Watkins wrote (for fun) a new operator, `addressof`. Code is here:
> https://github.com/krakjoe/php-src/compare/addressof
> 
> I think it makes more sense than a new method on all objects. You could use
> it for any kind of value: scalar, resource, object. Building an array of
> sockets, for example, would be very easy with such an operator.

For one this leaks quite some implementation details to userland which
we shouldn't do aside from debugging features. Secondly this becomes
unintuitive with value objects (see my DateTime example in this thread)

johannes



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

Reply via email to