Boo
July 21, 2004 Written by Charles CookSeveral blogs have linked to Boo recently and last night I downloaded the distribution to investigate some of the ways in which it is different to C#, e.g. type inference, first class functions, automatic variable declaration, duck typing, syntactic attributes and syntactic macros.
Before getting into the new stuff I chose something familiar:
import System
import CookComputing.XmlRpc from CookComputing.XmlRpc
[XmlRpcUrl("http://www.cookcomputing.com/xmlrpcsamples/RPC2.ashx")]
interface IStateName:
[XmlRpcMethod("examples.getStateName")]
def GetName(num as int) as string
obj as IStateName = XmlRpcProxyGen.Create(typeof(IStateName))
Console.WriteLine(obj.GetName(1))
Copyright © 2011, Charles Cook.