Nesting in Ada programs is for the birds

  • Authors:
  • Lori A. Clarke;Jack C. Wileden;Alexander L. Wolf

  • Affiliations:
  • -;-;-

  • Venue:
  • SIGPLAN '80 Proceedings of the ACM-SIGPLAN symposium on The ADA programming language
  • Year:
  • 1980

Quantified Score

Hi-index 0.00

Visualization

Abstract

Given a data abstraction construct like the Ada package and in light of current thoughts on programming methodology, we feel that nesting is an anachronism. In this paper we propose a nest-free program style for Ada that eschews nested program units and declarations within blocks and instead heavily utilizes packages and context specifications as mechanisms for controlling visibility. We view this proposal as a first step toward the development of programming methods that exploit the novel language features available in Ada. Consideration of this proposal's ramifications for data flow, control flow, and overall program structure substantiates our contention that a tree structure is seldom a natural representation of a program and that nesting therefore generally interferes with program development and readability.