On Fri, Jul 10, 2009 at 08:45:55AM -0400, Alban wrote:
> Hello all,
> 
> I don't understand why you focus on " Strict / Weak " question.

It is really about:

* type checking and enforcement
or
* type casting and generation of an error if the value cannot be converted 
cleanly

Both of these have a value in different situations ... I would like to see both.
The option of no checking/casting (as at present) should remain.

> For me it's very simple, it's not obligatory use Type Hiting. Developpers 
> wants to write a weak code, they'll just have to not use Type Hiting and 
> developpers wants wrote a stric code they'll have to use it.
> 
> After, choosing use or not Type Hinting when writing a librairy / 
> framework, this is not a php.internal problem. 
> It's a developper, designer, marketing choice ! Use or not use Type 
> hiting can help to chose a user target. And if you want be just between 
> weak and strict, " numeric " and " scalar " type hiting  seems to be a 
> very good middle point.
> 
> 
> +1 for Strict type hiting. (weak type hiting very similar to no type 
> hiting).

-- 
Alain Williams
Linux/GNU Consultant - Mail systems, Web sites, Networking, Programmer, IT 
Lecturer.
+44 (0) 787 668 0256  http://www.phcomp.co.uk/
Parliament Hill Computers Ltd. Registration Information: 
http://www.phcomp.co.uk/contact.php
Past chairman of UKUUG: http://www.ukuug.org/
#include <std_disclaimer.h>

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to