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...
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
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;