bearophile wrote:
I see, you want a Swiss army knife language :o)

Before choosing a design I suggest to look at how both Java and C#4 have done 
it, few random links about C#4:
http://msdn.microsoft.com/en-us/library/dd264736%28VS.100%29.aspx
http://blogs.msdn.com/cburrows/archive/2008/10/27/c-dynamic.aspx
http://geekswithblogs.net/sdorman/archive/2008/11/16/c-4.0-dynamic-programming.aspx

I think the D approach is superior, because it offers many more ways of doing things (it's implemented nearly completely as a library feature). C# was forced to do it with a magic type because it doesn't support templates.

Reply via email to