Boo
Wednesday 21 July 2004
Several 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))
Posted by
at 09:02 AM.
Permalink.
Copyright © Charles Cook.
Valid XHTML 1.0