Re: [RFC] Enum proposal (yet another)
| From: | Stas Malyshev | Date: | Wed, 22 Feb 2012 23:09:11 +0000 |
| Subject: | Re: [RFC] Enum proposal (yet another) | ||
| References: | 1 2 3 4 5 6 7 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-57970@lists.php.net to get a copy of this message | ||
Hi!
You should not. PHP is not a strictly typed language, so if you want strictly typed function you'll get in trouble, for the same reasons why strict scalar typing wasn't a good idea - you may want to re-read these discussions. -- Stanislav Malyshev, Software Architect SugarCRM: http://www.sugarcrm.com/ (408)454-6900 ext. 227Sidenote, according your examples above on how you want call functions: Considered using normal constants?How can I do type hinting with them?