if(arr) now a warning

bearophile via Digitalmars-d digitalmars-d at puremagic.com
Wed Apr 29 01:13:31 PDT 2015


Steven Schveighoffer:

> FYI, Andrei and Walter are reversing this change barring any 
> new evidence it's helpful to people. Please speak up if you 
> disagree.

There's no more evidence. It's an improvement, for people coming 
from Python. The current semantics is not meaningful. One of the 
points of D over C++ was to fix irrationally designed parts, like 
this small problem. Many small design mistakes like this one 
create C++ we know and hate. We should fix such small problems 
quickly and look forward, instead of debating forever and 
reverting every small step forward like this. My presence around 
here is becoming useless.

Bye,
bearophile


More information about the Digitalmars-d mailing list