Boo
Boo is python-like (whitespace delimited, colons to start methods)
lots of jokes about BOOBS (Boo Build System)
Boo has a compiler, an interpreter, and an interactive shell (booc, booi, booish respectively)
imports system.drawing from System.Drawing <-load something from the GAC
or
imports system.drawing from “c:\System.Drawing.dll” <-load something from the filesystem
So here are some commands and what they do in boo:
f= Form() ß as the brackets are specified it must be a constructor so no new keyword is required
f.Show()
b = Buttton(Text: “Click”)
f.Controls.Add(b)
b.Click+= { b.height+=3; b.Width+=5 } ß anonymous method
b.Text = “Time is $(DAteTime.Now.ToString(‘t’))” ßeasy way to inline variables
print b.Text ßoutput to console is easy
a = ( 1, 2, 3, 4) ß create an array
for a1 in a: print a1 ß output the contents of the array
for a1 in reversed(a): print a1 ßreverse contents of the array
h = { “k1”:b, “k2”:f } ßhash
h[“k2”].Show()
DateTime.Now + 1d ßadd one day. Could also use 1s 1h, etc.
word1, word2, word3 = /(\w+)/.Matches(“ How are you”) ß builtin regex
print word1 ß would print “How”
y = (43, 35, 23, 36, 74, 243, 92)
y[4:6] ß would get elements 4-6
Used it for build scripts
Boo seems to be the DSL language of choice for .NET until IronRuby is working