Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:9452 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 83301 invoked by uid 1010); 21 Apr 2004 10:15:05 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 83247 invoked from network); 21 Apr 2004 10:15:04 -0000 Received: from unknown (HELO xaxa.search.ch) (195.141.85.118) by pb1.pair.com with SMTP; 21 Apr 2004 10:15:04 -0000 Received: from localhost (localhost [127.0.0.1]) by xaxa.search.ch (Postfix) with ESMTP id C69DA6CFAE; Wed, 21 Apr 2004 12:15:03 +0200 (CEST) Received: by xaxa.search.ch (Postfix, from userid 65534) id B5B1C6D86E; Wed, 21 Apr 2004 12:15:02 +0200 (CEST) Received: from cschneid.com (ultrafilter2-i [192.168.85.3]) by xaxa.search.ch (Postfix) with ESMTP id 9A8E46CFAE; Wed, 21 Apr 2004 12:15:01 +0200 (CEST) Message-ID: <408649A5.3070307@cschneid.com> Date: Wed, 21 Apr 2004 12:15:01 +0200 User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040114 X-Accept-Language: en-us, en, de-ch MIME-Version: 1.0 To: Marcus Boerger Cc: internals@lists.php.net, Andi Gutmans , Zeev@zend.com References: <1921263076812.20040421120321@marcus-boerger.de> In-Reply-To: <1921263076812.20040421120321@marcus-boerger.de> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Checker-Version: SpamAssassin 2.63 (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.63 X-Virus-Scanned: by AMaViS 0.3.12pre8 Subject: Re: typehinting and NULL From: cschneid@cschneid.com (Christian Schneider) Marcus Boerger wrote: > function allowingNULL(object $val = NULL) > function preventNULL(object $val) I like this idea even though it's abusing the default value syntax. What's a bit weird is something like function foo(object $obj = NULL, $mandatoryparameter) { ... } where people will wonder why there is a default value even though they can't omit the parameter really. But personally I could live with that. - Chris