DEV Community

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

 
antjanus profile image
Ant The Developer

I've no idea, I've never done any Pascal.

Thread Thread
 
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;
}