Boo (programming language)

This is an old revision of this page, as edited by 213.65.138.54 (talk) at 13:43, 13 May 2014 (Undid revision 605413092 by 202.168.70.106 (talk)). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

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[1] 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 has been actively developed since 2003.

Boo
ParadigmObject oriented
Designed byRodrigo B. De Oliveira
DeveloperRodrigo B. De Oliveira
First appeared2003
Stable release
0.9.4 / 21 January 2011; 14 years ago (2011-01-21)
Typing disciplinestatic, strong, duck
Implementation languageC#
PlatformCommon Language Infrastructure (.NET Framework & Mono)
LicenseMIT/BSD style license
Websiteboo.codehaus.org
Influenced by
Python, C#

Boo is free software released under an MIT/BSD–style license. It is compatible with both the Microsoft .NET and Mono frameworks.

Code samples

Hello world program

println("Hello, world!");

Fibonacci series generator function

def (fib):
    a[4] = 0L, 1L, 2L, 3L       #The 'L's make the numbers double word length (typically 64 bits)
    while (fib == 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(true)):
    print("&{index++}: &{element--}")

See also

References

  1. ^ Rodrigo Barreto de Oliveira (2005). "The boo Programming Language" (PDF). Retrieved February 22, 2009.