Is there a general term to describe a keyword followed by a statement block? E.G.
if() {statement block}
while() {statement block}
try{statement block}
finally{statement block}
Or even something made up: controlScope{statement block}
Is there a general term to describe a keyword followed by a statement block? E.G.
if() {statement block}
while() {statement block}
try{statement block}
finally{statement block}
Or even something made up: controlScope{statement block}
I'd call them "Block Identifiers". In languages that support it, they are typically lexical closures which makes them more or less equivalent to functions. Thus they are "named functions" rather than anonymous functions which would be something like "BlockVariable = {block}".