DEV Community

Discussion on: Which mainstream programming language has the ugliest syntax?

 
arj profile image
arj

Correct, Pascal didn't allow assignments in expressions as an assignment was a statement and not an expression.

In C an assignment is an expression and thus it is allowed to be included into other expressions.

In Pascal though you never had trouble with this:

if (x = "command") {
   std::cout << x << std::end;
}