Re: [RFC] Return type-hint
| From: | Stas Malyshev | Date: | Thu, 28 Apr 2011 08:23:02 +0000 |
| Subject: | Re: [RFC] Return type-hint | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-52044@lists.php.net to get a copy of this message | ||
Hi!
Personally, I see even less point in having strict return typing (please stop using "hint" terminology, it confuses the whole matter, it's not "hint" if it describes mandatory restriction on the data) than strict argument typing. The RFC doesn't explain it either beyond "here how you can have some nice errors". But why would I want to see these errors? How they would make anything easier or better? -- Stanislav Malyshev, Software Architect SugarCRM: http://www.sugarcrm.com/ (408)454-6900 ext. 227http://wiki.php.net/rfc/returntypehintfor the upcoming 5.4 release, I think it would be extremely useful, even without the scalar stuff.