dangling else
dangling else The ambiguity that arises if a language allows constructs of the form if b1 then if b2 then S1 else S2
in which it is not clear which if is associated with the else. Algol 60 resolved the ambiguity by forbidding the use of if immediately after then; Pascal associates the else with the innermost if. Modern languages such as Ada avoid the problem by pairing each if with an explicit end if.
in which it is not clear which if is associated with the else. Algol 60 resolved the ambiguity by forbidding the use of if immediately after then; Pascal associates the else with the innermost if. Modern languages such as Ada avoid the problem by pairing each if with an explicit end if.
More From encyclopedia.com
International Language , international language, sometimes called universal language, a language intended to be used by people of different linguistic backgrounds to facilita… Formal Language , formal language
1. A language with explicit and precise rules for its syntax and semantics. Examples include programming languages and also logics su… Pashto , Pashto (Pushto) One of the two major languages of Afghanistan, the other being Persian. Pashto is spoken by about 12 million people in e Afghanistan… Iranian Languages , Family of languages spoken in Iran and adjacent countries.
The Iranian languages are closely related to those of the Indo–Aryan family, such as Sansk… Hungarian Language , Hungarian •antipodean, Crimean, Judaean, Korean •Albion •Gambian, Zambian •lesbian •Arabian, Bessarabian, Fabian, gabion, Sabian, Swabian •amphibian,… Turkish Language , Türkçe; official language of the Republic of Turkey.
Turkish is one of the Turkic languages of the Altaic language family, one of the world's major l…
You Might Also Like
NEARBY TERMS
dangling else