Re: [VOTE][RFC] Scalar Type Hinting with Cast
| From: | Rowan Collins | Date: | Mon, 15 Sep 2014 17:43:55 +0000 |
| Subject: | Re: [VOTE][RFC] Scalar Type Hinting with Cast | ||
| References: | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-77229@lists.php.net to get a copy of this message | ||
Stas Malyshev wrote (on 15/09/2014):
Hi!For those of us that aren't fluent in C, it would be great if someone could document those rules, or point at a readable piece of code which is specifically relevant to this discussion. As I understand it, it's also not quite true to say that everything automatically follows them, since functions can a) react how they want to a "failure" of ZPP, and b) perform any extra checks and conversions they want in addition to ZPP. From an engine perspective, the rules of ZPP itself may seem like a single unit, but from a userland PoV, the function's overall behaviour that is a "black box". Please correct me if I've misunderstood that. Regards, -- Rowan Collins [IMSoP]I agree that 100% is an unrealistic goal, but I don't think I've yet seen someone actually point at a documented set of rules that even 80% of current functions follow. I guess there is a default/normal usage ofThe rules are in zpp, and every function that uses zpp automatically follows them.