On Friday, 26 April 2013 at 08:00:28 UTC, Walter Bright wrote:
On 4/26/2013 12:07 AM, Maxim Fomin wrote:
Regarding bool type as integer type is C atavism and should be
abandoned.
There's a very loooong history of 0 being regarded as false and
1 as true - it goes well beyond C.
Assembly, PL/I, Algol, ...? Just asking as a language geek.
Personally, given my strong typing background, I dislike the
automatic conversion to booleans.
Even my C code has explicit comparisons for NULL pointers,
instead of relying in implicit conversions.
--
Paulo