Send to Printer

development

The kind of Complexity we don't need

February 26, 2003 17:29:31.047

I spotted this post on Clarence Westberg's blog:

If I do Type.GetType("MyClass") it doesn't work, that is it doesn't find the class. If I do Type.GetType("MyNamespace.MyClass") it works but only if I am in MyNamespace. If I have a using statement and a reference it doesn't work either Type.GetType("MyOtherNamespace.MyOtherClass"). How do I get the type of a class not in my namespace?
Chuckle. Yet another problem generated by manifest typing. Over here in the Smalltalk pond, we don't have that problem. Actually, if you read through his various posts on C#, it's as good an argument for using Smalltalk instead as any I've seen - bogged down in syntactical issues, and not addressing actual business problems.

Comments

Untitled

[clarence] February 27, 2003 9:04:55.819

I couldn't agree with you more. I often forget what problem I was trying to solve by the time I figure out the C# code to do what is already done in smalltalk. In the end I didn't need this code but I did want to figure out why it didn't work the way it is supposed to and record it in my blog for future reference.

 Share Tweet This