Top 1K Features Creators Events Podcasts Books Extensions Interviews Blog Explorer CSV

Sather

< >

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

#969on PLDB 34Years Old
Homepage · Wikipedia

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 Example Token
Print() Debugging ✓ #OUT
Line Comments ✓ -- A comment --
Comments ✓
Semantic Indentation X

- Build the next great programming language · Add · Issues · About · Search · Keywords · Livestreams · Labs · Resources · Acknowledgements

Built with Scroll v154.3.0