Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:80661 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 72474 invoked from network); 16 Jan 2015 20:34:57 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 16 Jan 2015 20:34:57 -0000 Authentication-Results: pb1.pair.com header.from=smalyshev@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=smalyshev@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.214.181 as permitted sender) X-PHP-List-Original-Sender: smalyshev@gmail.com X-Host-Fingerprint: 209.85.214.181 mail-ob0-f181.google.com Received: from [209.85.214.181] ([209.85.214.181:33753] helo=mail-ob0-f181.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id D4/E5-43627-FE579B45 for ; Fri, 16 Jan 2015 15:34:56 -0500 Received: by mail-ob0-f181.google.com with SMTP id gq1so20981011obb.12 for ; Fri, 16 Jan 2015 12:34:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=6imJOyH4D73jIo3mOEjoVeZ3HdZ+ZKskG7I1rRrxncs=; b=x13hQrjJpSx+iWE5D2r4LhAWDjxPiIjupGPQLPzuE7iSFQydD6OljFXyq253xj7pCF uXAIPuKRyD7YGgw8Uq5jupCuGqiEaFFs+wYEyZcrPLfXYlEXGH4vcfAKJ7v6fTfMw+F+ 9Kl4w95GlsAAx2cAF55ZFo0i6yDwvaFdBbjfsIt8iwVgFcpvtloy24qV5/ebYS+m0waX ojFBnKsbIl/8lCUF1Trtkr+Kfo5zCYjTA27Wfb+gd1ePLHTFIIGgJBKbVcW2gbjzfteP 1fFKFgUUaBySUqBLfO/I1mjKnLL84q8XhvDL3Ni6t2QnFLNWW+SaEXqb9+vIgxGX3xBS iHBQ== X-Received: by 10.182.27.207 with SMTP id v15mr10760122obg.21.1421440492618; Fri, 16 Jan 2015 12:34:52 -0800 (PST) Received: from Stas-Air.local (108-66-6-48.lightspeed.sntcca.sbcglobal.net. [108.66.6.48]) by mx.google.com with ESMTPSA id r132sm2727947oib.11.2015.01.16.12.34.51 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 16 Jan 2015 12:34:51 -0800 (PST) Message-ID: <54B975E5.20302@gmail.com> Date: Fri, 16 Jan 2015 12:34:45 -0800 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:31.0) Gecko/20100101 Thunderbird/31.3.0 MIME-Version: 1.0 To: Robert Stoll , 'Marc Bennewitz' , internals@lists.php.net References: <52243BA6.5040905@sugarcrm.com> <54B6C047.3070301@mabe.berlin> <54B6D0BA.8090104@gmail.com> <004701d03173$c4011630$4c034290$@tutteli.ch> In-Reply-To: <004701d03173$c4011630$4c034290$@tutteli.ch> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Subject: Re: AW: [PHP-DEV] [RFC] Skipping parameters take 2 From: smalyshev@gmail.com (Stanislav Malyshev) Hi! > This would be quite a nice feature, even if this RFC does not pass. > Just as hint, there are ambiguous case which need to be considered: > > interface A{ function foo($a=1); } interface B{ function > foo($a="hi"); } class C implements A, B{ function foo($a=default){} > //what would be the default value? } I'm not sure specifying the default on the interface makes much sense, since you'd have to override it anyway. I am inclined to only support it for extending (parent class). But if there's an easy way to do it for interfaces, it's ok - but checking that there are no duplicates may be expensive. -- Stas Malyshev smalyshev@gmail.com