Re: Q on Primitives
| From: | troels knak-nielsen | Date: | Fri, 19 Dec 2008 14:40:39 +0000 |
| Subject: | Re: Q on Primitives | ||
| References: | 1 2 3 4 5 6 7 8 9 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-42349@lists.php.net to get a copy of this message | ||
On Fri, Dec 19, 2008 at 3:31 PM, Nathan Rixham <nrixham@gmail.com> wrote:
> type hints are all ready there so adding primitives /should/ be possible
> without any bc issues
PHP is loosely typed. Adding typehints to primitives would change
this. The only reason that it is working with object types, is because
you can't automatically coerce object types anyway.
--
troels