Re: [RFC] Strict type hints (parameter and return value)
| From: | Sam Barrow | Date: | Fri, 20 Jun 2008 18:39:44 +0000 |
| Subject: | Re: [RFC] Strict type hints (parameter and return value) | ||
| References: | 1 2 3 4 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-38487@lists.php.net to get a copy of this message | ||
On Thu, 2008-06-19 at 20:07 +0200, Timm Friebe wrote:
> Hi,
>
> >> I like this generally, but cannot live with the BC issues raised.
> >> Introducing all type names as keywords will make "class Object", "class
> >>
> >> Integer" and so on give a syntax error.
> >
> > That's actually not true, the patch does not introduce new keywords.
>
> Hrm, the Wiki states it does:
>
> http://wiki.php.net/rfc/typehint#bc_break1
>
> If this can be worked out by other means, cool:)
Sorry, you're right. I was talking about my patch for argument type
hints, it doesn't create any new keywords.
> - Timm
>