DIP 1030--Named Arguments--Community Review Round 1 Discussion
12345swordy
alexanderheistermann at gmail.com
Thu Feb 20 15:35:10 UTC 2020
On Thursday, 20 February 2020 at 15:34:31 UTC, 12345swordy wrote:
> On Thursday, 20 February 2020 at 14:49:42 UTC, Paolo Invernizzi
> wrote:
>> On Thursday, 20 February 2020 at 11:59:13 UTC, jmh530 wrote:
>>> On Thursday, 20 February 2020 at 11:00:16 UTC, Atila Neves
>>> wrote:
>>>> [snip]
>>>>
>>>> Nope: https://www.python.org/dev/peps/pep-0570/
>>>
>>> 1) Pep 570 is opt-in*. It gives you a bit more control so you
>>> can have positional-only and key-word only arguments.
>>> However, if you do not opt-in, then python still has a mixed
>>> of positional and named arguments for everything. See the
>>> standard_arg function in function examples:
>>
>> That's the exact reason why they proposed 570: having named
>> argument is not alway a win.
>
> I don't think nor do I expect that people would used named
> arguments all the time when using another persons code.
>
> -Alex
*Unless it is mandate by the language obviously*
-Alex
More information about the Digitalmars-d
mailing list