Re: RE: Optional scalar type hinting
| From: | Sam Barrow | Date: | Thu, 03 Jan 2008 19:38:42 +0000 |
| Subject: | Re: RE: Optional scalar type hinting | ||
| References: | 1 2 3 4 5 6 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-34339@lists.php.net to get a copy of this message | ||
Thank you. As long as a feature is useful, why not add it? Just because
some people don't find it useful, this is not at all a reason to
completely discard the idea, especially when the only argument is "well
PHP doesn't need that so just use another language".
On Thu, 2008-01-03 at 20:23 +0100, Derick Rethans wrote:
> 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 | éð
> çQFÒf³>Óa׈http://ezcomponents.org |
> http://xdebug.org
>