Software Engineers Handbook/Language Dictionary/Oz
- 1 Oz
- 1.1 Type
- 1.2 Execution Entry Point
- 1.3 General Syntax
- 1.4 Comments
- 1.5 Variable Declarations
- 1.6 Method Declaration/Implementation
- 1.7 Scope
- 1.8 Conditional Statements
- 1.9 Looping Statements
- 1.10 Output Statements
- 1.11 Containers
- 1.12 Algorithms
- 1.13 Garbage collection
- 1.14 Physical Structure
- 1.15 Tips
- 1.16 Web References
- 1.17 Books and Articles
<Describe the language, include a brief history if possible.>
Multiparadigm; execution is sequential but programming styles could almost hide the sequentiality. Logical or dataflow variables are provided as well as shared mutable multi-assignment variables; however, the syntax for use of those variables differs so as to call attention to which the programmer is using.
Execution Entry Point
<Describe how/where the program is started i.e. C++ main()>
<Try to give a high level description of the contents of a typical line of code. An assignment example may be appropriate such as
a = b;
<Describe and show the syntax for comments such as
// this is an inline comment. Everything after the // is a comment.
Block comments are specified by a starting /* and ending */ They can span multiple lines.
/* * this is a block comment */
<Describe if variable declarations are necessary, and give examples of the different types, such as
declare i as an integer
two ways to declare i as an integer and give it an initial value of 0
int i = 0; int i(0);
<Describe how methods/functions/procedures are declared and implemented.>
<Describe how scope is defined.> There is lexical scoping?
<Describe the conditional statements in text and present
(put a space in the front of the line to format as code)> "if" and "case" commands are primitively available. Case commands permit decomposition of structures by pattern matching.
<Describe looping statements in English and present code examples.> Built in.
<Describe how to output Hello world! including the new-line with or without a carriage return.>
<List containers or references to lists of containers available natively for this language. List ways to incorporate containers if they are not native to the language.>
constructs a transparent data structure. The parts in lowercase are literals.
<List algorithms or references to lists of algorithms available natively for this language. List ways to incorporate algorithms if they are not native to the language. Or, if not available, describe that.>
<Describe whether the garbage collection is automatic or manual.> Is automatic.
<Describe how the files, libararies, and parts are typically divided and arranged.> Is developed and executed in an IDE, Mozart. There are tools for modularization and source code management (?).
<Please include tips that make it easier to switch to this language from another language.>
<List additional references on the web. Please include for what level reader the references are appropriate. (beginner/intermediate/advanced)>
Books and Articles
<List additional books and articles that may be helpful. Please include for what level reader the references are appropriate. (beginner/intermediate/advanced)> Van Roy and Haridi: Concepts, Techniques and Models of Computer Programming ("CTM").