Re: Strict typing
| From: | Melanie Rhianna Lewis | Date: | Wed, 11 Aug 2010 16:34:10 +0000 |
| Subject: | Re: Strict typing | ||
| References: | 1 2 3 4 5 6 7 8 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-49354@lists.php.net to get a copy of this message | ||
On 11 Aug 2010, at 17:01, Elizabeth M Smith wrote:
> Well this is turning into a real flamefest.
I'm now totally confused to be honest.
> Personally I really HATE the 5.3 implementation of "typehints" - heck you can't
> even typehint arrays with an arrayobject instance, it's not hinting in any way shape or form
> and is generally broken.
>
> On the other hand I'd like to be able to have the same control of parameters in my
> userland code that I do in extensions - namely the same control I get with zend_parse_parameters.
> And the same errors/warnings I get with zend_parse_parameters
This.
> Any reason we can't expose the logic included there into userland? Would make internal
> functions and userland functions work the same and act the same.
>
> Anyway, at this point there's a lot of arguing and very little consensus. I'm kind
> of tempted to say maybe all the people on the internals mailing list are a bit myopic in their
> viewpoints, and maybe this does need to get out to a wider community (php.general perhaps?) since
> the guy hacking on a wordpress plugin is every bit as much a PHP user as any of us.
Absolutely.
Melanie