Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:44902 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 9579 invoked from network); 10 Jul 2009 12:45:56 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 10 Jul 2009 12:45:56 -0000 X-Host-Fingerprint: 90.49.49.49 ANantes-258-1-30-49.w90-49.abo.wanadoo.fr Date: Fri, 10 Jul 2009 08:45:55 -0400 Received: from [90.49.49.49] ([90.49.49.49:5161] helo=localhost.localdomain) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 13/B7-23850-208375A4 for ; Fri, 10 Jul 2009 08:45:55 -0400 Message-ID: <13.B7.23850.208375A4@pb1.pair.com> To: internals@lists.php.net References: <7.0.1.0.2.20090708224156.0ac5a438@zend.com> <312025EF-84D0-4411-A0A7-4F0379C3105F@pooteeweet.org> User-Agent: Pan/0.132 (Waxed in Black) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Posted-By: 90.49.49.49 Subject: Re: [PHP-DEV] Type hinting - Request for Discussion From: seza@paradoxal.org (Alban) Le Thu, 09 Jul 2009 21:11:31 +0200, Geoffrey Sneddon a écrit : > On 9 Jul 2009, at 18:20, Lukas Kahwe Smith wrote: > > >> On 09.07.2009, at 10:39, Paul Biggar wrote: >> >>>> I think we can take Lukas's RFC and either change it or write >>>> something >>>> based on it for weak typing only. If people here find it useful I'll >>>> go >>>> ahead and do that. >>> >>> I believe people don't want this. I wrote a set of rules, Lukas wrote >>> the RFC, and neither got anything like the support that strict typing >>> got. >> >> >> Actually, in terms of weak typing we are now at 4 supporters of the >> general idea: >> Paul B., >> Lukas, >> Zeev, >> Christian S. > > As I said in the other thread, I'm in favour of weak typing (and against > strict typing). > > -g Hello all, I don't understand why you focus on " Strict / Weak " question. 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).