Basic Features of Boo
"""module docstring"""
namespace My.NameSpace
import Assembly.Reference
class MyClass:
pass
def domyfunction(it):
print(it)
domyfunction(3)
[assembly: AssemblyTitle('foo')]
// [Module] attribute defines "global" class
// Entry point: def Main(argv as (string)):
|
|
import System import System.Console // Import type import Some.Namespace from Weird.Assembly.Name import Gtk from "gtk-sharp" |
|
# a comment // a comment /* a comment */ /* /* a comment */ */ |
|
array(enumerable) array(type, collection) array(type, enumerable) array(type, size) enumerate(enumerable) // Returns index and the object itself gets gets() iterator(enumerable) as IEnumerable // Usually not necessary join(enumerable) join(enumerable, seperator as Char) map(enumerable, function) matrix(elementType, length as (int)) print print(object) prompt prompt(query as string) range(max as int) range(begin as int, end as int) range(begin as int, end as int, step as int) reversed(enumerable) shell(filename, arguments as string) shellm(filename, arguments as (string) ) shellp(filename, arguments as string) zip(first as IEnumerable, second as IEnumerable) |
Procedural Programming
|
|
and Parameters |
|
|
|
|
|
|
|
|
Types and Structures
{{}} |
|
{{}} |
|
{{}} |
|
{{}} |
|
{{}} |
|
|
{{}} |
{{}} |
|
{{}} |
|
{{}} |
|
{{}} |
|
{{}} |
|
Modules |
{{}} |
Object-oriented Features
{{}} |
|
{{}} |
|
{{}} |
|
{{}} |
|
{{}} |
Advanced Features
{{}} |
|
{{}} |
|
{{}} |
