[Oberon] Functional programming and Oberon
Robert Ransom
rransom.8774 at gmail.com
Thu Dec 15 23:35:39 CET 2016
On 12/15/16, Richard Hable <informujo at aon.at> wrote:
> - generics
>
> Linked List [T] = RECORD head: T; tail: List [T] END;
>
> Without generics (i.e. type parameters for functions, types, and values)
> it is not possible to define reusable persistent collections. We can't
> just build and manipulate aribitrary pointer structures.
Type extension is sufficient. A collection module can allow its
client modules to allocate extensions of its own Entry record type, or
it can operate on keys and/or values of type Objects.Object.
More information about the Oberon
mailing list