Boo (programming language): Difference between revisions

From Wikipedia, the free encyclopedia
Jump to navigation Jump to search
imported>Zerbu
 
imported>Paisen20
 
Line 36: Line 36:
<syntaxhighlight lang="boo">
<syntaxhighlight lang="boo">
def fib():
def fib():
     a, b = 0L, 1L   h
     a, b = 0L, 1L
     # The 'L's make the numbers double word length (typically 64 bits)
     # The 'L's make the numbers double word length (typically 64 bits)
     while true:
     while true:

Latest revision as of 09:26, 4 July 2025

Template:Short description Script error: No such module "Unsubst". Script error: No such module "Infobox".Template:Template otherScript error: No such module "Check for unknown parameters".

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 was one of the three scripting languages for the Unity game engine (Unity Technologies employed De Oliveira, its designer), until official support was dropped in 2014 due to the small userbase.[2] The Boo Compiler was removed from the engine in 2017.[3] Boo has since been abandoned by De Oliveira, with development being taken over by Mason Wheeler.[4]

Boo is free software released under the BSD 3-Clause license. It is compatible with the Microsoft .NET and Mono frameworks.

Syntax

Script error: No such module "Unsubst".

print ("Hello World")
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}")

See also

Script error: No such module "Portal".

References

<templatestyles src="Reflist/styles.css" />

  1. Script error: No such module "citation/CS1".
  2. Script error: No such module "citation/CS1".
  3. Script error: No such module "citation/CS1".
  4. Script error: No such module "citation/CS1".

Script error: No such module "Check for unknown parameters".

External links

Template:Common Language Infrastructure