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

BETA

< >

BETA is a programming language created in 1983 by Bent Bruun Kristensen and Ole Lehrmann Madsen and Birger Møller-Pedersen and Kristen Nygaard.

#920on PLDB 41Years Old
Homepage · Wikipedia

BETA is a pure object-oriented language originating within the "Scandinavian School" in object-orientation where the first object-oriented language Simula was developed. Among its notable features, it introduced nested classes, and unified classes with procedures into so called patterns.. Read more on Wikipedia...


Example from hello-world:
ORIGIN '~beta/basiclib/betaenv' -- program: Descriptor -- (* Hello World in BETA *) (# do 'Hello World' -> putLine #)
{ *** Hello World in BETA ***} (# do 'Hello World!'->putLine #)
Example from Wikipedia:
max: (# x, y, z: @integer enter (x, y) do (if x >= y // True then x -> z else y -> z if) exit z #)

Language features

Feature Supported Example Token
Strings ✓ 'Hello world' '
Comments ✓ // A comment
Line Comments ✓ // A comment //
Semantic Indentation X

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

Built with Scroll v154.3.0