Curly bracket programming language: Difference between revisions

Content deleted Content added
Conditional statements: remove the out of place Ruby example
Statements and blocks: an instance of indentation *and* brackets
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 (in [[Ada programming language|Ada]], [[Pascal programming language|Pascal]], [[REXX]], and [[Visual Basic]]), the [[Off-side rule]] of indentation (in [[Python programming language|Python]]), or other symbols such as parentheses (in [[Lisp]]). These ways are not necessarily exclusive: whereas indentation is the default in [[Haskell programming language|Haskell]], curly brackets can be used when desired.
 
=== Loops ===