Curly bracket programming language: Difference between revisions

Content deleted Content added
Languages: Added clarifying information to language list.
Deleted most second and third instances of Wiki-links to terms: "C", "C++", "Java".
Line 19:
but this is not recommended, as it becomes nearly impossible for a person to read after the program grows beyond a few statements.
 
There are many other ways to identify statement blocks, such as ending keywords that may match beginning keywords (seein [[Ada programming language|Ada]], [[Pascal programming language|Pascal]], [[REXX]], and [[Visual Basic]]), indentation (seein [[Python programming language|Python]]), or other symbols such as parentheses (seein [[Lisp]]).
 
=== Loops ===
 
In [[C programming language|C]], [[C Plus Plus|C++]], and [[Java programming language|Java]]:
while (''Boolean expression'') {
''statement(s)''
Line 38:
=== Conditional statements ===
 
In [[C programming language|C]], [[C Plus Plus|C++]], and [[Java programming language|Java]]:
if (''Boolean expression'') {
''statement(s)''
Line 66:
=== Exception handling ===
 
In [[C Sharp programming language|C#]] and [[Java programming language|Java]]:
try {
''statement(s)''
Line 77:
}
 
[[C Plus Plus|C++]] does not have <tt>finally</tt>, but otherwise looks similar. C has nothing like this, though some compilers vendors added the keywords <tt>__try</tt> and <tt>__finally</tt> to their implementation.
[[C programming language|C]] has nothing like this, though some compilers vendors added the keywords <tt>__try</tt> and <tt>__finally</tt> to their implementation.
 
==Languages==