Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:13557 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 2511 invoked by uid 1010); 27 Oct 2004 08:53:36 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 2439 invoked from network); 27 Oct 2004 08:53:35 -0000 Received: from unknown (HELO xaxa.search.ch) (195.141.85.117) by pb1.pair.com with SMTP; 27 Oct 2004 08:53:35 -0000 Received: from localhost (localhost [127.0.0.1]) by xaxa.search.ch (Postfix) with ESMTP id 7CA976D87A; Wed, 27 Oct 2004 10:53:35 +0200 (CEST) Received: by xaxa.search.ch (Postfix, from userid 65534) id 333A06D8CF; Wed, 27 Oct 2004 10:53:34 +0200 (CEST) Received: from [192.168.0.42] (ultrafilter-i [192.168.85.2]) (using TLSv1 with cipher RC4-MD5 (128/128 bits)) (No client certificate requested) by xaxa.search.ch (Postfix) with ESMTP id A3E0D6D83A; Wed, 27 Oct 2004 10:53:33 +0200 (CEST) Message-ID: <417F620D.3030106@cschneid.com> Date: Wed, 27 Oct 2004 10:53:33 +0200 User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.2) Gecko/20040906 X-Accept-Language: en-us, en, de-ch, de MIME-Version: 1.0 To: Marcus Boerger Cc: Cristiano Duarte , internals@lists.php.net References: <20041022174124.27478.qmail@pb1.pair.com> <20041027002106.94528.qmail@pb1.pair.com> <15784920.20041027092711@marcus-boerger.de> In-Reply-To: <15784920.20041027092711@marcus-boerger.de> X-Enigmail-Version: 0.86.0.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Checker-Version: SpamAssassin 2.64 (2004-01-11) on xaxa.search.ch X-Spam-Level: X-Spam-Status: No, hits=-4.9 required=5.0 tests=BAYES_00 autolearn=ham version=2.64 X-Virus-Scanned: by AMaViS 0.3.12pre8 Subject: Re: [PHP-DEV] Type hints with null default values From: cschneid@cschneid.com (Christian Schneider) Marcus Boerger wrote: > So for now the only addition we may probably consider for 5.1 is > adding 4: optional typehinted values that default to null and only > null. Please don't add another parameter syntax (especially with line-noi... err special characters) like [BaseClass]. This would make PHP more unreadable than it needs to be for a minor feature. To allow foo(BaseClass $objA = null) to also accept foo(null); handles the few cases where you want to pass null nicely IMHO. Advocating to only change the PHP syntax to simplify it, - Chris