wyld
Check me out on the web at my blog.
C# fanatic, stuck in VBScript prison currently. Hoping one day to convice the powers that be that .NET must be moved to forth-with.
Interests: Outdoors, canoeing, backpacking etc.
Interests: Outdoors, canoeing, backpacking etc.
Eric Gunnerson - How do you design new features for C#?
May 02, 2004 at 10:38 AMI think I've seen the reasoning for this from other languages (Java I believe). THe reason I recall is that you can handle optional parameters with method overloading and this also alleviates some ambiguity problems as well.
eg.
public void MyMethod(int num) {
MyMethod(num, "default text");
}
public void MyMethod(int num, string text = “default text”)
{
...
}