Sather
Sather | |
---|---|
Publishing year: | 1990 |
Designer: | Steve Omohundro |
Developer: | GNU project |
Current version | 1.2.3 (July 7, 2007) |
Influenced by: | Eiffel , CLU |
Affected: | Rust |
License : | GNU General Public License, version 3 |
www.gnu.org/software/sather/ |
Sather is an object-oriented programming language . It was created in 1990 at the International Computer Science Institute (ICSI) at the University of California at Berkeley .
Sather was initially modeled on Eiffel , but as development continued, the language moved away from a pure object-oriented paradigm and in particular incorporated elements of functional programming . Originally, the development was motivated by the idea of writing an efficient language that preserves the simplicity and security of Eiffel or CLU without taking over its complexity. Sather programs that meet the initial language specifications are also valid Eiffel programs. This no longer applies to programs that follow the current specifications.
Other influences for Sather are Smalltalk , Scheme , Common Lisp and the CLOS .
The name "Sather"
The name refers to the Sather Tower , a prominent tower located on the campus of the University of California, Berkeley, and is intended as a reference to the Eiffel language , which in turn was named after the Eiffel Tower in Paris.
Properties of Sather
- Parameterized classes
- Polymorphic methods and invocation mechanisms
- Statically verifiable, strong contravariant typing
- Multiple inheritance
- Garbage collection
- Iterators
- Higher order functions and iterators
- Exceptions
- Assurances
- Pre- and post-conditions
- Class invariants
Hello world program in Sather
The following source code is a simple Sather program that prints the message Hallo Welt!
and a line break on standard output.
class HALLO_WELT is main is #OUT+"Hallo Welt!\n"; end; end;
Dialects
- pSather is an extension of Sather that contains constructs that can be used to express parallel calculations.
- Sather-K was developed from Sather at the University of Karlsruhe by Prof. Gerhard Goos .
Translator for Sather
- The ICSI Berkeley provides the Sather translator developed there free of charge.
- The Sather-K translator is available from the University of Halle
- The GNU project has developed its own Sather translator .