On Thursday, 30 July 2015 at 13:32:29 UTC, Timon Gehr wrote:
On 07/30/2015 11:25 AM, Chris wrote:
On Thursday, 30 July 2015 at 02:30:45 UTC, Ola Fosheim Grøstad
wrote:
On Tuesday, 28 July 2015 at 09:29:28 UTC, Chris wrote:
[1] I wonder what kind of bugs will be introduced, when
if-else is
used as an expression.
I believe most Algol-like languages outside the C-family have
it...
So can you tell me what pitfalls there are?
What kind of special pitfall do you envision here?
Sure people must have come across some nasty bugs related to
this.
They are the intersection of nasty bugs involving ?: and nasty
bugs involving if/else statements.
My point was that any (new) feature introduces its own problems.
Be it "everything is a statement" or built-in "bug prevention"
(rigid features). While preventing certain types of bugs, new
types may be introduced by features that have been introduced to
prevent old bugs. It would be foolish to believe that most bugs
will be erased, if only a language is rigid enough. As I said,
I'll wait and see what Rust users have to say after a year or two.