Group: programming notation
Topic: access to components of a data object
Topic: access to objects by a path
Topic: uniform reference to data
| |
Summary
Access notation indicates a component of a data object. The most common are dot notations for accessing record components, and bracketed indices for accessing arrays. Access notation can be chained to indicate an accessing path. Up-arrow is used for dereferencing a pointer. Dot notation was first used in decimal notation. Knuth (knutDE_73) has noted that dot notation doesn't read well (i.e., 'Name.component' for the name's component). He feels that 'component (name)' fits mathematical phraseology, emphasizes the component, and indicates that 'name' is a varying entity. The language L* (grayJC_73) uses dot notation as component.name. (cbb 5/80)
Subtopic: natural reference to property
Quote: the nectar property of a card named flower is "nectar of flower" or "flower's nectar" [»paneJF9_2002]
| Subtopic: structures and arrays
Quote: in PL/1, structures and arrays can be intermixed, e.g., a. b(10) [»sammJE_1969, OK]
| Subtopic: style
Quote: prefer info(p) over p.info because info() has a fixed meaning while p is variable [»knutDE_1973]
| Subtopic: component and pointer selection
QuoteRef: grayJC_1973 ;;169 component selection by selector.item
| QuoteRef: demeA3_1979 ;;21 "The form [Var[val] Denotation . Id is treated as shorthand for T $ Id ( [Var/Val]Denotation) where T is the type of the given denotation
| QuoteRef: wulfWA6_1976 ;;20 ref by function (element, parameters) or element. function (params)
| QuoteRef: wirtN1_1971 ;;46 in Pascal, variable access by b[red] or U.realpart or file_name^ or pointer^
|
Related Topics
Group: programming notation (14 topics, 221 quotes)
Topic: access to components of a data object (4 items)
Topic: access to objects by a path (13 items)
Topic: uniform reference to data (34 items)
|