Why is Phobos `Flag` so overthought ?
cc
cc at nevernet.com
Sat May 11 16:29:38 UTC 2024
On Thursday, 9 May 2024 at 18:48:12 UTC, Nick Treleaven wrote:
>> We have a tool in our box already called `true` and that
>> solves the problem. If we had to type out the full name of
>> every argument passed to every function ever written we may as
>> well just adopt ObjC Cocoa style and call it
>> StopWatchWithAutoStartBool().
>
> Strawman.
Not at all. I mean exactly that. Why do you believe this
function is so important it needs to have its argument type
explicitly stated, when most functions don't? Either that, or
you believe all functions should. It's arbitrary and pointless.
More information about the Digitalmars-d-learn
mailing list