for instance:
bool r = if (test()) { false; } else { true; }
I don't see the point of adding such complexity.. it's waaay more clear to be explicit
bool r = test(); if (r) { false; } else { true; }
bool r; if (test()) { r = false; } else { r = true; }
bool r = !test();
for instance:
what r should be set to? true or false?I don't see the point of adding such complexity.. it's waaay more clear to be explicit
or, if you intended the other way I guess that's why you need to be strictly correct, or highly opinionated, to design a language.