Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:57970 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 63597 invoked from network); 22 Feb 2012 23:09:14 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 22 Feb 2012 23:09:14 -0000 Authentication-Results: pb1.pair.com header.from=smalyshev@sugarcrm.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=smalyshev@sugarcrm.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain sugarcrm.com designates 67.192.241.153 as permitted sender) X-PHP-List-Original-Sender: smalyshev@sugarcrm.com X-Host-Fingerprint: 67.192.241.153 smtp153.dfw.emailsrvr.com Linux 2.6 Received: from [67.192.241.153] ([67.192.241.153:59473] helo=smtp153.dfw.emailsrvr.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 12/22-46696-A95754F4 for ; Wed, 22 Feb 2012 18:09:14 -0500 Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp25.relay.dfw1a.emailsrvr.com (SMTP Server) with ESMTP id E507C2D00F9; Wed, 22 Feb 2012 18:09:11 -0500 (EST) X-Virus-Scanned: OK Received: by smtp25.relay.dfw1a.emailsrvr.com (Authenticated sender: smalyshev-AT-sugarcrm.com) with ESMTPSA id 99B002D0095; Wed, 22 Feb 2012 18:09:11 -0500 (EST) Message-ID: <4F457597.3060405@sugarcrm.com> Date: Wed, 22 Feb 2012 15:09:11 -0800 Organization: SugarCRM User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:10.0.1) Gecko/20120208 Thunderbird/10.0.1 MIME-Version: 1.0 To: =?ISO-8859-1?Q?=C1ngel_Gonz=E1lez?= CC: Sebastian Krebs , PHP internals list References: <4F455C96.50706@gmail.com> <4F455E91.2060408@googlemail.com> <4F4570D6.8040003@gmail.com> In-Reply-To: <4F4570D6.8040003@gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] [RFC] Enum proposal (yet another) From: smalyshev@sugarcrm.com (Stas Malyshev) Hi! >> Sidenote, according your examples above on how you want call >> functions: Considered using normal constants? > How can I do type hinting with them? 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. 227