Re: RE: Optional scalar type hinting
| From: | Derick Rethans | Date: | Thu, 03 Jan 2008 19:23:32 +0000 |
| Subject: | Re: RE: Optional scalar type hinting | ||
| References: | 1 2 3 4 5 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-34338@lists.php.net to get a copy of this message | ||
On Thu, 3 Jan 2008, Stanislav Malyshev wrote:
> > When the type hint says I want an integer, then only integer should be
> > accepted; no casting should be done. It may give predictable results
>
> Why people that want Java just don't use Java I wonder? PHP never was a strict
> static typed language.
Broken record perhaps? I am getting a bit tired of this "just use Java
argument", it's perhaps even a bit arrogant. From what I read there is
plenty of people that want type hints for static types - there's a few
patches out there, it doesn't slow down the general case. So why should
we *not* add it? (And yes, I changed my mind)
regards,
Derick
--
Derick Rethans
http://derickrethans.nl | http://ezcomponents.org | http://xdebug.org