Probably a good way to force parentesys usage and avoid subtle
bugs...
On Monday, 2 April 2012 at 10:01:20 UTC, deadalnix wrote:
Hi,
I have a design question, or maybe it is a bug ? In D, == and
!= have the same precedence than comparisons operators. This
isn't the case in C/C++ . Is it a design decision, made on
purpose ? Is it a bug ?
DMD implementation and http://dlang.org/expression.html both
agree on that.
I personally think it is a bug. This is a change in the
behavior of C/C++ with no legitimate reason. Or at least with
no legitimate reason I can come up with.