On Mon, Sep 2, 2013 at 12:24 PM, Lester Caine <les...@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

Reply via email to