On Wed, 2013-06-26 at 16:40 +0200, Ferenc Kovacs wrote:

> >
> I think that the return typehints a bit easier topic than the input type
> hinting(for scalars), because that affects the caller, while return type
> hinting is more contained: you write the function, you put the return
> typehint there, if the method tries to return something else, then your
> code is at fault.
> So even if we would allow return typehints for scalars that would only
> affects those functions where the developer opts-in.

So a function author doesn't trust himself and therefore we change the
language syntax?

johannes


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

Reply via email to