Hi!

> In the same way that Iterable type hint allows you to safely do a
> foreach on an argument, object allows you to safely use property
> accessor syntax (i.e. ->). For me it would be most useful in lower
> level utility classes.

Not sure I get this point. How you can safely use -> if you have no idea
what object you've got? You certainly don't expect every object to have
the same properties?

-- 
Stas Malyshev
smalys...@gmail.com

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

Reply via email to