Deprecate implicit `int` to `bool` conversion for integer literals
Steven Schveighoffer
schveiguy at yahoo.com
Wed Nov 15 00:10:09 UTC 2017
On 11/14/17 6:05 PM, Michael V. Franklin wrote:
> On Tuesday, 14 November 2017 at 13:54:03 UTC, Steven Schveighoffer wrote:
>
>> IMO, no character types should implicitly convert from integer types.
>> In fact, character types shouldn't convert from ANYTHING (even other
>> character types). We have so many problems with this.
>
> Is everyone in general agreement on this? Can anyone think of a
> compelling use case?
I would think this is another DIP from the one you are looking at, as it
is more far-reaching than just overload problems. They are real
problems, but this makes the DIP scope broader than it should be, and
lessen the chance of acceptance.
-Steve
More information about the Digitalmars-d
mailing list