3 ms·
I think 90% of developers would rather the compiler just complain there (for any condition in the if). Considering that without the compiler warning/error we ha
by czinck 10y ago
I think 90% of developers would rather the compiler just complain there (for any condition in the if). Considering that without the compiler warning/error we have one of the most common sources of hard-to-find bugs, and with the compiler complaining the developer just has to type ` = 0`, it seems like an easy choice to me.