On Sun, Jan 20, 2013 at 4:47 PM, Clint Priest <[email protected]> wrote:
>
> On 1/20/2013 9:26 AM, Nikita Popov wrote:
>
>> I now added a patch for this proposal: https://gist.github.com/**4579298<https://gist.github.com/4579298>(For
>> more detailed individual commits see here:
>> https://github.com/nikic/php-**src/commits/alternativeSyntax<https://github.com/nikic/php-src/commits/alternativeSyntax>
>> )
>>
> One thing I hadn't noticed is that the proposal was to move the typehint,
> what happens in this case then:
>
> public DateTime $date {
> get;
> set(stdClass $value);
> }
>
> Would the above produce a compilation error on the stdClass part?
>
Yes, that's an error. And I'm not sure what that is supposed to mean in the
first place (it has two different typehints at two different places...)
This proposal will allow a typehint before the property name and only
there. Allowing one in both places doesn't make much sense to me.
Nikita