Boo (programming language)

From Wikipedia, the free encyclopedia

Jump to: navigation, search
Boo
Image:BooLogo.png
Paradigm Object oriented
Appeared in 2003
Designed by Rodrigo B. De Oliveira
Developer Rodrigo B. De Oliveira
Latest release 0.8/ 2007-10-17
Typing discipline static, strong, duck
Major implementations auyu6
Influenced by Python
OS .NET Framework, Mono Runtime
License MIT/BSD style license
Website boo.codehaus.org

Boo is an object oriented, statically typed programming language developed starting in 2003, which seeks to make use of the Common Language Infrastructure support for Unicode, internationalization and web style 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 is open sourcelicensed under an MIT/BSD style license.

Boo can be used with Microsoft .NET or Mono.

Contents

print "Hello, world!"

def fib():
    a, b = 0L, 1L       #The 'L's make the numbers 64-bit
    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}")

import System.Windows.Forms
import System.Drawing
 
class MyForm(Form):
    def constructor(message as string):
        b = Button(Text: "Click Me")
        b.Location = Point(100, 50)
        b.Click += do():
            MessageBox.Show(message)
 
        self.Controls.Add(b)
 
f = MyForm("you clicked the button!")
Application.Run(f)

import System
 
def run():
    print("executing")
 
print "started" 
result = run.BeginInvoke({ print("called back") })
System.Threading.Thread.Sleep(50ms)
run.EndInvoke(result)
 
print "done"

  • IronPython - an implementation of Python for the .NET platform, similar to Jython.
  • Nemerle - a high-level statically-typed programming language for the .NET platform. It offers functional, object-oriented and imperative features as well as macros.
  • Groovy - a language with similar objectives but targeting the Java Platform

Advanced Search
Included Web Search Engines


Safe Search

close

Top Matching Results

Occasionally Search.com will highlight specialized results that are based on the context of your query. Examples of specialized results include specific links to news, images, or video.

Top Matching Results may highlight information from other Search.com pages, content from the CNET Network of sites, or third party content. The listings are based purely on relevance. Search.com does not receive payment for listings in this section but our partners that provide this data may get paid for listing these products.

Sponsored Links

This section contains paid listings which have been purchased by companies that want to have their sites appear for specific search terms and related content. These listings are administered, sorted and maintained by a third party and are not endorsed by Search.com.

Search Results

Search.com sends your search query to several search engines at one time and integrates the results into one list which has been sorted by relevance using Search.com's proprietary algorithm. You can customize the list of search engines included in your metasearch from the preferences.

The search engines that are used in your metasearch may allow companies to pay to have their Web sites included within the results. To view the Paid Inclusion policy for a specific search engine, please visit their Web site. Search.com does not accept payment or share revenue with any search engine partner for listings in this section.