Re: [RFC] Simple Annotations
| From: | Rowan Collins | Date: | Tue, 17 May 2016 16:38:49 +0000 |
| Subject: | Re: [RFC] Simple Annotations | ||
| References: | 1 2 3 4 5 6 7 8 9 10 11 12 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-93381@lists.php.net to get a copy of this message | ||
On 17/05/2016 17:21, guilhermeblanco@gmail.com wrote:
It all sounds reasonable on #2 what everyone is heavily forcing/suggesting because of DbC, but it *only* makes sense in the context of a function call (or a bound object in case of OO members). In any other case its outcome is unpredictable.Yeah, you're right, access to an actual parameter value or runtime instance requires logic somewhere else to provide the context, and to run the check on every execution of a function requires some magic to inject it into the call stack, or the function body, so my example doesn't really make any sense. Regards, -- Rowan Collins [IMSoP]