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

Boo

< >

Boo is an open source programming language created in 2003 by Rodrigo B. De Oliveira.

#376on PLDB 21Years Old 232Repos
Homepage · REPL · Try It Online · Wikipedia · Docs

Boo is an object-oriented, statically typed, general-purpose programming language that seeks to make use of the Common Language Infrastructure's support for Unicode, internationalization, and web applications, while using a Python-inspired syntax and a special focus on language and compiler extensibility. Some features of note include type inference, generators, multimethods, optional duck typing, macros, true closures, currying, and first-class functions. Boo was one of the three scripting languages for the Unity game engine (Unity Technologies employed De Oliveira), until it was dropped in 2014 due to small userbase. Read more on Wikipedia...


Example from Riju:
print "Hello, world!"
Example from hello-world:
print "Hello World"
# Hello World in Boo print "Hello World"
Example from Wikipedia:
def fib(): a, b = 0L, 1L # The 'L's make the numbers double word length (typically 64 bits) while true: yield b a, b = b, a + b # Print the first 5 numbers in the series: for index as int, element in zip(range(5), fib()): print("${index+1}: ${element}")

Language features

Feature Supported Example Token
MultiLine Comments
Integers # \d+
Floats # (\d+\.\d*|\d*\.\d+)([fF][+-]?[0-9]+)?
Hexadecimals # 0x[a-fA-F0-9]+
Octals # 0\d+
Strings "Hello world" "
Print() Debugging print
Comments # A comment
Line Comments # A comment #
Type Inference
Semantic Indentation

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

Built with Scroll v164.7.0