Re: Introducing "Array Of" RFC
| From: | Lazare Inepologlou | Date: | Mon, 20 Jan 2014 09:54:00 +0000 |
| Subject: | Re: Introducing "Array Of" RFC | ||
| References: | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-71316@lists.php.net to get a copy of this message | ||
Hello,
on 2014/1/16 Sara Golemon wrote:
> * Soft types - Any type preceeded by an at sign is hinted as that type,
> but not checked:
> function foo(@Bar $IHopeYoureABarObject) {...}
Nobody has commented so far about this feature of HHVM, which, in my
opinion is a win-win:
+ Clarifies the contract between the function designer and the function
user.
+ Makes the life easy for IDEs and static analysis tools.
+ No run-time penalty.
Thoughts?
--
Lazare INEPOLOGLOU
Ingénieur Logiciel