deadalnix:

Thi sis reversed logic. bool => char have know drawback. So it must bring something at least as important as the drawback (whatever how small it is) involved.

I agree that implicit conversion from bool to char sounds useless or bad. But you already have a D2 language that few people use, so to break their code you need an important enough reason :-(

Beside requiring the parentheses about the ?: operator when it's part of a larger expression, there are one or two other patterns that I'd like to see disallowed in D, like (!x & y). I think Walter agreed on disallowing it, but I have not heard about it since some time:

http://d.puremagic.com/issues/show_bug.cgi?id=5409

Bye,
bearophile

Reply via email to