Re: [RFC] Return type-hint
| From: | Alain Williams | Date: | Thu, 28 Apr 2011 09:02:59 +0000 |
| Subject: | Re: [RFC] Return type-hint | ||
| References: | 1 2 3 4 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-52051@lists.php.net to get a copy of this message | ||
On Thu, Apr 28, 2011 at 10:39:55AM +0200, Ferenc Kovacs wrote:
> do you aware that without the scalar support, the return type hinting would
> behave just as "strict" as the argument type hinting is currently.
> http://php.net/manual/en/language.oop5.typehinting.php
>
> so maybe type hinting wasn't a good name at the first place, but we should
> be consistent with the current naming convention.
Yes, it was a poor choice of words. I think that it should be renamed 'type checking'
with a transition note, eg:
Type checking (formerly called type hinting)
--
Alain Williams
Linux/GNU Consultant - Mail systems, Web sites, Networking, Programmer, IT Lecturer.
+44 (0) 787 668 0256 http://www.phcomp.co.uk/
Parliament Hill Computers Ltd. Registration Information: http://www.phcomp.co.uk/contact.php
#include <std_disclaimer.h>