This link has been bookmarked by 1 people . It was first bookmarked on 10 Oct 2007, by ratbeard.
-
10 Oct 07
-
The static type system of Clean guarantees that runtime type errors cannot occur.
-
The terse syntax makes that you have a clear view over what is actually happening in this function.
-
the classes in Clean are more general than the notion of classes in most object oriented languages.
-
This reads the increment of item i, is that item with the field quantity set to the increment of that field from the argument record.
-
To be member of the same class, datatypes need not have any relation. It is sufficient that the appropriate functions are defined for that datatype.
-
In Clean a class is a family of functions with the same name. The difference between these family members is the type processed.
-
In this example the generators are separated by a semicolon, this implies that all possible combinations of elements from the generators are considered.
-
The scope of local definitions is the function alternative where they are defined. Local definitions are used to limit the scope of definitions, to share a value or to name an expression.
-
In general a list comprehension yields the list of values indicated between [ and \\. These values are computed for each element of the generators (between // and |), that obeys the condition between | and ]
-
A guard is a boolean expression that can be inserted between the patterns of a function alternative and the symbol =. The symbol | separates the patterns and the guard. The alternative is only applied when the guards yields True.
-
An infix operator is in fact just an ordinary function of two arguments that is written between its arguments: x^n.
-
Each program in Clean computes the value of the expression Start.
-
Would you like to comment?
Join Diigo for a free account, or sign in if you are already a member.