On Friday, 26 April 2013 at 19:37:48 UTC, Jonathan M Davis wrote:
The main place where casting would be annoying - if conditions
and loop
conditions - already insert an explicit cast underneat the hood.
IMO it still makes no sense to have the implicit casting done in
conditional statements because it is not obvious why a given
conditional should treat a zero differently than all other
values. However at this stage retaining that old convention is
perhaps unavoidable.
At the very least, D should be minimizing the potential for
programmers falling into the traps caused by non-intuitive
implicit casting. In the case of bool, there's no obvious
relationship with the int data type, so let's get rid of that
arbitrary association, make casting explicit, and move on.
--rt