Curly bracket programming language: Difference between revisions

Content deleted Content added
Johan Lont (talk | contribs)
Languages: Is it true what I wrote? See talk page
copyedit
Line 11:
RESULTIS b }
 
== Statements andStatement blocks ==
The name derives from the common syntax of the languages, where blocks of [[statement (programming)|statement]]s are enclosed in curly brackets. For example (using [[Berkeley Software Distribution|BSD]]/[[Eric Allman|Allman]] [[indent style]], one of many stylistic ways to format a program):
 
Line 119:
C++ does not have <tt>finally</tt>, but otherwise looks similar. C has nothing like this, though some vendors have added the keywords <tt>__try</tt> and <tt>__finally</tt> to their [[compiler]]s.
 
== Typographical concerns ==
=== Problems ===
Some 7 bit national [[ISO/IEC 646]] sets redefine curly brackets to characters that make programs hardly readable on such designed terminals. To address this problem, BCPL had digraphs '''(*''' and '''*)''' for <tt>{</tt> and <tt>}</tt> (same as Pascal), and [[ANSI C]] introduced ''[[C trigraph|trigraph]]s'' that can be used instead of such problematic characters. All trigraphs consist of two [[question mark]]s (“??”) followed by a character that is not redefined in the national 7 bit ASCII character sets. The trigraphs for ‘{’ and ‘}’, respectively, are “'''??<'''” and “'''??>'''”.
 
== Languages ==
The curly bracket programming style is usedassociated or at least supported bywith the following programming languages:
*[[ABCL/c plus|ABCL/c+]]
*[[Alef (programming language)|Alef]]