Type inference for default function / method arguments?

Witold Baryluk witold.baryluk at gmail.com
Mon May 10 19:55:11 UTC 2021


On Monday, 10 May 2021 at 19:32:19 UTC, Imperatorn wrote:
> On Monday, 10 May 2021 at 18:50:02 UTC, Witold Baryluk wrote:
>> Hi,
>>
>> using D for very long time.
>>
>> I was working on a project, and converting bunch of optional 
>> `bool` options in various functions, to use `Flag` and 
>> `BitFlag`, to make it more readable, especially on a call side.
>
> You could maybe use Variant somehow?

Could you elaborate? I am not sure how would it help in anyway.



More information about the Digitalmars-d mailing list