The Dylan Quick Reference


1. Notation

This is a brief summary of useful things you might want to know about Dylan. The more complicated things are explained in handouts, this is just a quick reference.

Notation used in this handout:


2. Identifiers

You can use letters, numbers and "=", "-", ">", "<", "/", "*" and "+" in identifiers (names). Numbers may not appear as the first character in an identifier.


3. Types

By convention, all types begin with a "<" and end with a ">". There is a hierarchy of types, with various mechanisms for user defined classes. Dylan provides many built in types, to handle numbers, strings, collections of objects, and more:


4. Numbers

There are two built-in number classes, <float> and <integer>. <integer> provides integer values in the range -263...263-1.


5. Variables

Variable names can either be specified by an identifier or an (identifier type) pair. The latter is used to force the variable referenced by identifier to be of type type, and is the preferable form to use in Dylan. Specifying no type is the same as the using (identifier <object>).


6. Booleans

In addition, any object other than #f means true as well. It is good programming style however to use #t when you explicitly mean true.


7. Lists


8. Special Forms

Special forms are expressions that do not follow standard evaluation rules:


9. Equality Testing


10. List Structure Operators


11. Type Checking Operations


12. Arithmetic and Numeric Operators


13. Vector Operators


14. Higher Order Functions


Last modified 4/5/98 by AN