Cannot implicitly convert expression `true` of type `bool` to `Flag`
Paul Backus
snarwin at gmail.com
Fri Oct 16 18:43:58 UTC 2020
On Friday, 16 October 2020 at 15:46:54 UTC, rikki cattermole
wrote:
> On 17/10/2020 4:20 AM, Ali Çehreli wrote:
>> The possibility of calling it wrong is still there. Is that
>> purely the caller's fault? What do others think?
>
> I have never been convinced of the arguments against using bool
> for flags in params.
>
> But I do think that having named parameters rather than named
> arguments would have removed this as an issue. The name should
> be required.
It's always possible to add named parameters *in addition* to
named arguments. The two are not mutually incompatible.
More information about the Digitalmars-d
mailing list