Re: Type hinting

From: Date: Thu, 27 May 2010 17:36:38 +0000
Subject: Re: Type hinting
References: 1 2 3 4 5 6 7 8 9  Groups: php.internals 
Request: Send a blank email to internals+get-48529@lists.php.net to get a copy of this message
Hi!
No, your app doesn't need to be. Only if you interact with a library that employs it in the API. A library provides APIs. API developers that want you to follow strict types now, will force you to do so anyway, but
What would be a legitimate reasons for API developers to care about zval types (as opposed to the data)? In which API it makes sense to accept 1, but reject '1'? How often you would encounter API where it really makes sense? -- Stanislav Malyshev, Software Architect SugarCRM: http://www.sugarcrm.com/ (408)454-6900 ext. 227

« previous php.internals (#48529) next »