Website | Source

Introduction to Dylan | Dylan Programming Guide | Dylan Reference Manual | Open Dylan Documentation

Example:

define class <vehicle> (<object>)
  slot owner :: <string>,
    init-keyword: owner:,
    init-value: "Northern Motors";
end;

define class <car> (<vehicle>)
end;

define class <truck> (<vehicle>)
  slot capacity,
    required-init-keyword: tons:;
end;

Dylan is a multi-paradigm functional and object-oriented programming language. It is dynamic while providing a programming model designed to support efficient machine code generation, including fine-grained control over dynamic and static behaviors.


Tags: language   object   functional   dynamic  

Last modified 07 October 2024