Style Conventions for Icon Source Code

Ralph E. Griswold

Department of Computer Science
The University of Arizona
Tucson, Arizona

IPD72a
March 11, 1996
http://www.cs.arizona.edu/icon/docs/ipd072.htm


Rationale

Several style conventions are used in the C code for Icon. These conventions are not necessarily better than other conventions in common use; the main thing they provide is consistency. Consistency serves two main purposes: improved readability and ease in processing of the source code by programs.

Unfortunately, there are many departures from the conventions listed below in the source code as it now stands. Many persons have worked on the C code for Icon and not all of them have been careful to observe the "Icon style". It's also hard to switch if you're used to coding in another style.

If you are modifying the source code for Icon, please adhere to the conventions listed below.

Coding Conventions


Icon home page