Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Why does Seed7 not use the C statements like C++ and Java?

Java seed7 statements
0
Posted

Why does Seed7 not use the C statements like C++ and Java?

0

The C statements have some weaknesses which are avoided with the Seed7 statements: The C if-statement if (condition) statement; allows just one statement after the condition. By using the compound statement it is possible to have several statements after the condition if (condition) { statement1; statement2; } Adding or removing a statement in the second if-statement is always possible. In the first if-statement you must add braces if you add a statement otherwise you get an undesired effect. Adding statements to an if-statement is quite common.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123