Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:33309 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 54365 invoked by uid 1010); 19 Nov 2007 13:21:46 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 54350 invoked from network); 19 Nov 2007 13:21:46 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 19 Nov 2007 13:21:46 -0000 Authentication-Results: pb1.pair.com smtp.mail=sam@sambarrow.com; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=sam@sambarrow.com; sender-id=unknown Received-SPF: error (pb1.pair.com: domain sambarrow.com from 205.234.132.11 cause and error) X-PHP-List-Original-Sender: sam@sambarrow.com X-Host-Fingerprint: 205.234.132.11 scottsdale.servershost.net Received: from [205.234.132.11] ([205.234.132.11:40159] helo=scottsdale.servershost.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 91/24-23144-AED81474 for ; Mon, 19 Nov 2007 08:21:46 -0500 Received: from [65.207.49.92] (port=53227) by scottsdale.servershost.net with esmtpsa (SSLv3:RC4-MD5:128) (Exim 4.68) (envelope-from ) id 1Iu6ZL-0002CH-0Z; Mon, 19 Nov 2007 07:21:43 -0600 To: Alexey Zakhlestin Cc: RQuadling@googlemail.com, David Coallier , Hannes Magnusson , Cristian Rodriguez , internals@lists.php.net In-Reply-To: References: <1195140437.23612.5.camel@sbarrow-desktop> <10610581037.20071115172619@marcus-boerger.de> <7d5a202f0711181452h3b6a26b8x5b838b585c552765@mail.gmail.com> <7f3ed2c30711181624r7a0c77ddh6f9e86fa3c862133@mail.gmail.com> <1195448765.12342.12.camel@sams-room> <10845a340711190337q29224625l5dc24ed0cf4f815e@mail.gmail.com> Content-Type: text/plain Date: Mon, 19 Nov 2007 08:19:45 -0500 Message-ID: <1195478385.10182.2.camel@sbarrow-desktop> Mime-Version: 1.0 X-Mailer: Evolution 2.10.1 Content-Transfer-Encoding: 7bit X-Antivirus-Scanner: Clean mail though you should still use an Antivirus X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - scottsdale.servershost.net X-AntiAbuse: Original Domain - lists.php.net X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - sambarrow.com X-Source: X-Source-Args: X-Source-Dir: Subject: Re: [PHP-DEV] [PATCH] Optional scalar type hinting From: sam@sambarrow.com (Sam Barrow) I just finished redoing this patch by the way, it's available on sambarrow.com, along with my custom superglobals patch. On Mon, 2007-11-19 at 15:17 +0300, Alexey Zakhlestin wrote: > On 11/19/07, Richard Quadling wrote: > > > What if type hinting just generated an E_NOTICE. Nothing more for the > > time being. > > > > Call it an experimental option. > > > > I already use hungarian notation for all my params ( cause I'm > > unimaginative with my var names I suppose!), so the type hinting would > > help me enforce this and reduce errors in the long run (code goes from > > me to other developers who only glance at the dox) > > I like this idea > > but E_STRICT seems to fit better :) > > -- > Alexey Zakhlestin > http://blog.milkfarmsoft.com/ >