Questions Columns Rows
GitHub icon

Sather

Sather - Programming language

< >

Sather is a programming language created in 1990 by Steve Omohundro.

#449on PLDB 33Years Old

Sather is an object-oriented programming language. It originated circa 1990 at the International Computer Science Institute (ICSI) at the University of California, Berkeley, developed by an international team led by Steve Omohundro. It supports garbage collection and generics by subtypes. Read more on Wikipedia...


Example from hello-world:
class MAIN is main is loop #OUT + "Hello World\n" end end end
-- Hello World in Sather class HELLO is main is #OUT + "Hello World!\n" end end
Example from Wikipedia:
upto!(once m:INT):SAME is i: INT := self; -- initialise i to the value of self, -- that is the integer of which this method is called loop if i>m then quit; -- leave the loop when i goes beyond m end; yield i; -- else use i as return value and stay in the loop i := i + 1; -- and increment end; end;

Language features

Feature Supported Token Example
Print() Debugging #OUT
Line Comments --
-- A comment
Comments
Semantic Indentation X

View source

- Build the next great programming language · Search · Add Language · Features · Creators · Resources · About · Blog · Acknowledgements · Stats · Sponsor · Traffic · Traffic Today · Day 278 · feedback@pldb.com · Logout