Re: Type hinting

From: Date: Fri, 28 May 2010 17:44:17 +0000
Subject: Re: Type hinting
References: 1 2 3 4 5 6  Groups: php.internals 
Request: Send a blank email to internals+get-48556@lists.php.net to get a copy of this message
Hi!
I think that's a brilliant plan. We won't ever agree on whether we want either strict type hinting, or casting typehinting and this provides both possibilities with the following pros:
For the record, I think having both is even worse than having one of them. That makes the language into mishmash of options which work similarly but different and make code harder to understand and harder to work with - imagine working with 5 libraries, 3 of which use one method and another 2 use another and you have to remember on each step which one uses which. -- Stanislav Malyshev, Software Architect SugarCRM: http://www.sugarcrm.com/ (408)454-6900 ext. 227

« previous php.internals (#48556) next »