Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:68840 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 43172 invoked from network); 2 Sep 2013 10:26:31 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 2 Sep 2013 10:26:31 -0000 Authentication-Results: pb1.pair.com smtp.mail=tyra3l@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=tyra3l@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.223.179 as permitted sender) X-PHP-List-Original-Sender: tyra3l@gmail.com X-Host-Fingerprint: 209.85.223.179 mail-ie0-f179.google.com Received: from [209.85.223.179] ([209.85.223.179:43195] helo=mail-ie0-f179.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 63/B2-29856-5D764225 for ; Mon, 02 Sep 2013 06:26:29 -0400 Received: by mail-ie0-f179.google.com with SMTP id m16so6429606ieq.38 for ; Mon, 02 Sep 2013 03:26:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=0J3UXy6cuDDDHal4RARNwWoWMgerb3goSppJM4KNShg=; b=mvoyDPzEizt4bGzeunhkuNYLIKsTKbSgUrYzLiUkcIfzn30DF7A2PRFF0qACPi1R+y dbxYOwpOhr01SJTPrBT9guzNCDMErNjX5jPV/pUuc6rwmgYVoQ63gdMNfYZZjYNmabZA LHRAwJ39ftN0SaUnMWhFv+TXKiA2e2GKM3nRCxDw3b3/xZQHtmIif1fpSoASsBEQ5Oy3 FK4UIU3DH6H3FIY89a10SuahPqF5mGd46D7MIZIp2S2x+HDAjdABJIx4JUjYcTceDkM4 xrSK+ScUCgbVpWqkIzBHk9KK0FgSZyhBr8pNC3QiIJOdloYKI3jBRxLDjSPCsn32XgNH DvDw== MIME-Version: 1.0 X-Received: by 10.42.72.135 with SMTP id o7mr741062icj.42.1378117586063; Mon, 02 Sep 2013 03:26:26 -0700 (PDT) Received: by 10.50.73.42 with HTTP; Mon, 2 Sep 2013 03:26:25 -0700 (PDT) In-Reply-To: <5224674B.40008@lsces.co.uk> References: <52243BA6.5040905@sugarcrm.com> <52244119.4040807@sugarcrm.com> <5224543C.7030702@lsces.co.uk> <5224674B.40008@lsces.co.uk> Date: Mon, 2 Sep 2013 12:26:25 +0200 Message-ID: To: Lester Caine Cc: PHP internals Content-Type: multipart/alternative; boundary=90e6ba6e87d02d399104e56401a9 Subject: Re: [PHP-DEV] [RFC] Skipping parameters take 2 From: tyra3l@gmail.com (Ferenc Kovacs) --90e6ba6e87d02d399104e56401a9 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Mon, Sep 2, 2013 at 12:24 PM, Lester Caine wrote: > Jannik Zschiesche wrote: > >> another small advantage would be that IDEs could show you the default >>>> value >>>> for the argument when hovering the default keyword. >>>> >>> But a good IDE is already showing the full function and notes ... and >>> will >>> autocomplete so that this fix is not actually required :) >>> >>> In many cases, the 'additions' being loaded into the core would be much >>> better >>> handled in an IDE and already were in am ore flexible way ... >>> >> >> Except for the case when the default changes. >> With `default` you will to the new default, with a (once) generated code >> block >> in the IDE it will stay the old default. >> >> And exactly this is the actual intention of this proposal (as far as I >> understood it). >> > > ? ... How would the default change from what is defined in the code? > What am I missing? > > you write your code where you copypaste the default value some time passes somebody changes the default value in the called function definition your code now calls the function with a non-default value. --=20 Ferenc Kov=C3=A1cs @Tyr43l - http://tyrael.hu --90e6ba6e87d02d399104e56401a9--