Re: towards the next 5.3 release
| From: | Stanislav Malyshev | Date: | Thu, 05 Feb 2009 20:48:08 +0000 |
| Subject: | Re: towards the next 5.3 release | ||
| References: | 1 2 3 4 5 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-42954@lists.php.net to get a copy of this message | ||
Hi!
Of course we could, we'd "just" have to change a structure and zend_verify_arg_class_kind() and of course the language syntax to allow something like "function foo(A|B $bar) {}" but this still would mean toMaybe just use a plain old if()? :) I understand that is super-uncool bit we really don't have to invent another mini-php there to specify argument types (what if I want A and B, but not C which extends B, but also null would be OK, and strings "A" and "B" too?) -- Stanislav Malyshev, Zend Software Architect stas@zend.com http://www.zend.com/ (408)253-8829 MSN: stas@zend.com