Re: Type hinting/casting request for vote
| From: | Greg Beaver | Date: | Tue, 07 Jul 2009 20:50:48 +0000 |
| Subject: | Re: Type hinting/casting request for vote | ||
| References: | 1 2 3 4 5 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-44794@lists.php.net to get a copy of this message | ||
Paul Biggar wrote:
> On Tue, Jul 7, 2009 at 6:41 PM, Lukas Kahwe Smith<mls@pooteeweet.org> wrote:
>> B) foo($bar);
>> function bar((int) $bar) {}
>>
>> What am I really saying with B)?
>> I don't care what you give me, I am going to use it as an int anyways?
>
> Exactly. Very simple. I would phrase it as "I'll accept anything and
> cast it to an int".
>
>
>> Of course I am also quite opposed to sticking this into 5.3.
>
> On which grounds? If you don't like the feature, please cast a -1
> vote. If its because of the BC problems, I believe you and Johannes
> have veto power on what goes into 5.3.x? If so, do you intend to use
> it?
On the grounds that 5.3.x is now in maintenance mode, no new features.
This is not a new way of conducting business in PHP, FYI.
Greg