Re: Return type hinting patch
| From: | Sam Barrow | Date: | Tue, 29 Apr 2008 16:04:53 +0000 |
| Subject: | Re: Return type hinting patch | ||
| References: | 1 2 3 4 5 6 7 8 9 10 11 12 13 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-37306@lists.php.net to get a copy of this message | ||
On Tue, 2008-04-29 at 18:00 +0200, David Zülke wrote:
> As I've pointed out,
>
> public array x()
>
> will become ambiguous once we introduce a type "function", which is
> not unlikely at this point
That's what I thought, that's why I said number 1 is the most likely.
>
> David
>
>
>
>
>
> Am 29.04.2008 um 17:22 schrieb Sam Barrow:
>
> >
> > Well in summation I think this is something that should be
> > implemented,
> > I don't see any arguments against implementing this atleast for arrays
> > and classes, like we already have for function parameters.
> >
> > The only thing left would be to decide on the syntax
> >
> > public array function x() { // Probably the easiest
> > public array x() { // I like this best, if it's possible
> > public function x() return array { // Probably not, just throwing it
> > out
> > there
> >
> > Agree?
> >
> >
>
>