Re: [RFC] Skipping parameters take 2

From: Date: Mon, 02 Sep 2013 10:26:25 +0000
Subject: Re: [RFC] Skipping parameters take 2
References: 1 2 3 4 5 6 7  Groups: php.internals 
Request: Send a blank email to internals+get-68840@lists.php.net to get a copy of this message
On Mon, Sep 2, 2013 at 12:24 PM, Lester Caine <lester@lsces.co.uk> 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. -- Ferenc Kovács @Tyr43l - http://tyrael.hu

« previous php.internals (#68840) next »