Re: Type hinting
| From: | Derick Rethans | Date: | Thu, 27 May 2010 15:38:02 +0000 |
| Subject: | Re: Type hinting | ||
| References: | 1 2 3 4 5 6 7 8 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-48525@lists.php.net to get a copy of this message | ||
On Thu, 27 May 2010, larry@garfieldtech.com wrote:
> The problem is that, as was pointed out, strict typing is not
> optional. The minute I am using one library that is built with strict
> typing, all of my interaction with it from my code must be strict.
> That means either:
>
> 1) My application needs to be strictly typed throughout (assuming I
> even understand the concept; really how many developers not on this
> list even know what a zval is?).
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
with convoluted code. Instead of this convoluted type checking userland
code, with strict typehints they can now do this on the language level.
regards,
Derick
--
http://derickrethans.nl | http://xdebug.org
Like Xdebug? Consider a donation: http://xdebug.org/donate.php
twitter: @derickr and @xdebug