Discussion Thread: DIP 1030--Named Arguments--Final Review

Dmitry Olshansky dmitry.olsh at gmail.com
Wed May 13 09:59:49 UTC 2020


On Wednesday, 13 May 2020 at 08:17:26 UTC, Jacob Carlborg wrote:
> On 2020-05-12 08:22, Jonathan Marler wrote:
>> [...]
>
> I disagree. It's much better what we already have. The `sleep` 
> method on `Thread` takes a duration, instead of a specific time 
> unit. The duration is also encoded in its own type:
[snip]
Exactly my thoughts, well put Jacob!

>> [...]
>
> I disagree. I think there are very few cases of APIs where a 
> function expects a truly generic value. It's better to try to 
> encode the purpose or how a value is used in the parameter 
> name. [snip]

Again, pure gold and spot on.

—
Dmitry Olshansky
Stay safe and have fun!


More information about the Digitalmars-d mailing list