Top 1,000 Features Creators Events Podcasts Extensions Blog Explorer CSV Download

Boo

< >

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

#343on PLDB 21Years Old 232Repos

Try now: Riju ยท TIO

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 Token Example
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 โœ“

View source

- Build the next great programming language ยท About ยท Resources ยท Acknowledgements ยท Part of the World Wide Scroll