DIP 1015--removal of implicit conversion from integer and character literals to bool--Community Review Round 1
Steven Schveighoffer
schveiguy at yahoo.com
Thu Jun 21 17:11:07 UTC 2018
On 6/20/18 4:16 AM, Mike Parker wrote:
> This is the feedback thread for the first round of Community Review for
> DIP 1015, "Deprecation and removal of implicit conversion from integer
> and character literals to bool":
>
> https://github.com/dlang/DIPs/blob/7c2c39243d0d747191f05fb08f87e1ebcb575d84/DIPs/DIP1015.md
>
>
> All review-related feedback on and discussion of the DIP should occur in
> this thread. The review period will end at 11:59 PM ET on July 4, or
> when I make a post declaring it complete.
>
> At the end of Round 1, if further review is deemed necessary, the DIP
> will be scheduled for another round. Otherwise, it will be queued for
> the Final Review and Formal Assessment by the language maintainers.
>
> Please familiarize yourself with the documentation for the Community
> Review before participating.
>
> https://github.com/dlang/DIPs/blob/master/PROCEDURE.md#community-review
>
> Thanks in advance to all who participate.
>
>
I agree with everything, but one thing that is not specified here is
when integers are used as conditionals.
In other words, this still has to compile:
if(1) ...
enum a = 1;
if(a) ...
I can see this somehow getting caught up in the "implicit conversion to
bool", so there should be a section to address this.
-Steve
More information about the Digitalmars-d
mailing list