Map
Index
Random
Help
Topics
th

Topic: notations for brackets

topics > computer science > programming > Group: programming notation



Topic:
program blocks for control
Topic:
operator precedence
Topic:
pattern brackets

Summary

Brackets are used to group elements. They can be matched pairs such as begin..end or parentheses, or they can be key words. Line start/end can be used for brackets, as can indentation. Matched brackets have the problem of dropping the closing bracket. Later brackets are seen as elements of the unclosed bracket delaying error detection until the end of text. Different brackets may have the same or differing functions. The elements enclosed by brackets may form a function call, a parameter list, a control block, a set, a constant list, etc. (cbb 5/80)
Subtopic: brackets for grouping up

Note: allow [], {}, and () for grouping [»cbb_1990, OK]
QuoteRef: bennRK7_1976 ;;35 groups of words by phrase deliminators eg (...)
QuoteRef: landPJ_1966 ;;105 all brackets same effect, intermix for clarity

Subtopic: brackets for type of collection up

QuoteRef: morrJH8_1972 ;;757 sequence by (), matrix by [], sets by {} (any order of evaluation)

Subtopic: keyword brackets up

QuoteRef: dod12_1977 ;;42 line boundaries treated as spaces so bracketed scoping key words begin-

Subtopic: style up

QuoteRef: sammJE_1969 ;;461 avoids unmatched parens by allowing ** only between functions

Subtopic: internationalization up

Quote: the characters [, ], {, }, |, \, and ! are missing from widely used character sets; need to provide equivalent representations [»stroB_1994]

Subtopic: avoid brackets up

Quote: eliminate brackets by assuming a list of statements for each component [»richF12_1977, OK]
Quote: 'then' eliminates the need for brackets around the condition; closing keywords in MODULA eliminated other brackets
[»kovaTA11_1978]

Related Topics up

Topic: program blocks for control (20 items)
Topic: operator precedence (13 items)
Topic: pattern brackets
(15 items)

Updated barberCB 9/04
Copyright © 2002-2008 by C. Bradford Barber. All rights reserved.
Thesa is a trademark of C. Bradford Barber.