Exploring the Boo scripting language

GHOSTSTORY

Article from Issue 73/2006
Author(s):

Boo is a scripting language tailor-made for Mono and .NET. This haunting mixture of Python and C# may be just what you need to get started with the .NET framework.

Rodrigo Barreto de Oliveira was frustrated; he couldn’t find a programming language that was suitable for his next project. Python didn’t have the kind of static type checking he needed, and he would have preferred better .NET integration. C# was well integrated with .NET, but it required too much typing. These disappointments led Rodrigo to develop his own scripting language. His new language would be Python-based, and it would rely on the Common Language Infrastructure (or CLI) and the Dotnet framework. He spiced the results with a couple of C# and Ruby design principles and finally came up with the object-oriented Boo [1] language, which is available for Linux thanks to the Mono environment. Saying Hello Because the ubiquitous “Hello World” with its print("Hello World") line is almost too trivial, Listing 1 gives you a GTK# variant on the theme.

Buy this article as PDF

Express-Checkout as PDF
Price $2.95
(incl. VAT)

Buy Linux Magazine

SINGLE ISSUES
 
SUBSCRIPTIONS
 
TABLET & SMARTPHONE APPS
Get it on Google Play

US / Canada

Get it on Google Play

UK / Australia

Related content

  • Batsh

    Batsh kills two birds with one stone: Programs written in this language can be compiled both as Linux Bash scripts and Windows batch files.

  • Practical Python in Linux

    We’ll introduce you to Python, an easy-to-learn scripting language, and also help you get started creating your own practical Python scripts.

  • CoffeeScript

    Through the years, many languages have tried to improve or even replace JavaScript, including CoffeeScript, which runs in all JavaScript Runtime Environments and compiles into JavaScript.

  • Meson Build System

    Developers fed up with cryptic Makefiles should take a look at the new Meson build system, which is simple to operate, offers scripting capabilities, integrates external test tools, and supports Linux, Windows, and Mac OS X.

  • Perl: CPAN Additions

    Many people have declared the granddaddy of scripting, Perl, to be dead. A look at new items in the CPAN software repository, however, shows that the community is still quite active.

comments powered by Disqus

Direct Download

Read full article as PDF:

Dotnet_Scripting_with_boo.pdf (176.32 kB)

News