Curly bracket programming language: Difference between revisions

Content deleted Content added
Alphabetized language naming, standardized punctuation.
Statements and blocks: Deleted word "braces", left "brackets", to conform to standard Wiki-usage.
Line 3:
== Statements and blocks ==
 
The name derives from the common syntax of the languages, where blocks of statements are enclosed in curly braces or brackets. For example (using [[Berkeley Software Distribution|BSD]]/[[Eric Allman|Allman]] [[indent style]], one of many stylistic ways to format a program):
 
for (int i = 0; i < 10; i++)
Line 11:
'''}'''
 
Languages in this family are sometimes referred to as '''C-style''', because they tend to have syntax that is strongly influenced by [[C syntax|C's syntax]]. Beside the curly brackets, they often inherit other syntactic features, such as using the semicolon as a statement terminator (not as a separator), and the three-part "for" statement syntax as shown above.
 
Generally, these languages are also considered "free-form languages", meaning that the compiler considers all whitespace to be the same as one blank space, much like [[HTML]]. Considering that, the above code ''could'' be written: