Naming: BEGIN ~ END vs LIVE ~ EVIL blocks structured languages
Curly Bracket languages ββare well known: ( wikipedia )
Other programming languages ββmay have a BEGIN ~ END vs LIVE ~ EVIL structure. eg,
A) BEGIN ~ END, DO ~ END, IF ~ END IF - examples: Ada , Modula , Pascal , PL / I , Ruby , etc ...
B) IF ~ FI, DO ~ OD, CASE ~ IN ~ OUT ~ ESAC - examples: Action! , ALGOL 68 , Bourne shell , Cool , ELLA , Protected Command Language , Lucid , Opal , Maple , Mary , Polyglot , Promela , etc ..
What are the official (or other reasonable) names to distinguish between the two different styles A) and B) of structural structuring?
source to share
As a pun on the "reverse", I suggest: IF ~ FI, DO ~ OD, CASE ~ IN ~ OUT ~ ESAC as a "reverent" block structuring.
The first case of "reverent" block structuring can be found at http: // ALGOL Bulletin - ISSN: 0084-6198 , however I cannot find the name of the creator or the exact publication.
Hence also: BEGIN ~ END, DO ~ END, IF ~ END IF as "irreverent" block structuring.
An example of a technical palindrome that appears much earlier (and outside of computation) would be Lord Kelvin Mho (β§) .
source to share
http://en.wikipedia.org/wiki/Curly_bracket_programming_language
FTA:
Interchangeable brace or bracket programming languages ββare those that use balanced brackets ({and}), also known as "sliding braces", "brace braces", or just "curly braces") to create blocks in their syntax or formal grammar. mainly due to the influence of C. The main alternative style is the use of paired keywords, although some languages ββ(notably Python and Occam) use the outer style instead, and Lisp uses parentheses.
I take from this as meaning:
{} = curly brace programming languages ββBEGIN END = paired keyword
indentation = off-side
Not to say that Wikipedia is definitive, but it seems close to the "official" names as you get, and most people will probably know right away what you are talking about if you reference them as such.
source to share
Algol actually started with the if
- then
- begin
- syntax end
before moving on to the if
- then
- syntax fi
, so it's probably best to avoid calling anything "Algol- like". Many people are likely to get your drift if you call begin
- end
"Pascal-like" bracketing and if
- fi
"sh-like" bracketing.
source to share