Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:80689 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 58375 invoked from network); 17 Jan 2015 11:05:04 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 17 Jan 2015 11:05:04 -0000 Authentication-Results: pb1.pair.com smtp.mail=php@tutteli.ch; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=php@tutteli.ch; sender-id=pass Received-SPF: pass (pb1.pair.com: domain tutteli.ch designates 80.74.154.78 as permitted sender) X-PHP-List-Original-Sender: php@tutteli.ch X-Host-Fingerprint: 80.74.154.78 ns73.kreativmedia.ch Linux 2.6 Received: from [80.74.154.78] ([80.74.154.78:47641] helo=hyperion.kreativmedia.ch) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id F2/D1-47555-DD14AB45 for ; Sat, 17 Jan 2015 06:05:02 -0500 Received: (qmail 27717 invoked from network); 17 Jan 2015 12:04:57 +0100 Received: from cm135-167.liwest.at (HELO RoLaptop) (81.10.135.167) by ns73.kreativmedia.ch with ESMTPSA (AES256-SHA encrypted, authenticated); 17 Jan 2015 12:04:57 +0100 To: "'Stanislav Malyshev'" , "'Marc Bennewitz'" , References: <52243BA6.5040905@sugarcrm.com> <54B6C047.3070301@mabe.berlin> <54B6D0BA.8090104@gmail.com> <004701d03173$c4011630$4c034290$@tutteli.ch> <54B975E5.20302@gmail.com> In-Reply-To: <54B975E5.20302@gmail.com> Date: Sat, 17 Jan 2015 12:04:53 +0100 Message-ID: <005f01d03245$6c584200$4508c600$@tutteli.ch> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft Outlook 14.0 Thread-Index: AQGVucwNBrtZcrj7xRm/8nes4cZsHQGN8+mpAopyI/0CnyylgAIRE8ssnPLPhPA= Content-Language: de-ch Subject: AW: AW: [PHP-DEV] [RFC] Skipping parameters take 2 From: php@tutteli.ch ("Robert Stoll") > -----Urspr=FCngliche Nachricht----- > Von: Stanislav Malyshev [mailto:smalyshev@gmail.com] > Gesendet: Freitag, 16. Januar 2015 21:35 > An: Robert Stoll; 'Marc Bennewitz'; internals@lists.php.net > Betreff: Re: AW: [PHP-DEV] [RFC] Skipping parameters take 2 >=20 > Hi! >=20 > > 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=3D1); } interface B{ function = foo($a=3D"hi"); > > } class C implements A, B{ function foo($a=3Ddefault){} //what would = be > > the default value? } >=20 > 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. >=20 > -- > Stas Malyshev > smalyshev@gmail.com >=20 > -- > PHP Internals - PHP Runtime Development Mailing List To unsubscribe, = visit: http://www.php.net/unsub.php I think you are right and restricting it to the parent class only would = remove the ambiguity=20