D
Duncan .McNutt
You have no idea what I have affiliations with so bite me little man
Eric Gunnerson said:It's a feature vs. complexity thing.. While we agree that there are cases
where case ranges are useful, we don't think that their usefullness above
what you get with a simple series of if statements outweighs the increase in
complexity.
--
Eric Gunnerson
Visit the C# product team at http://www.csharp.net
Eric's blog is at http://blogs.gotdotnet.com/ericgu/
This posting is provided "AS IS" with no warranties, and confers no rights.
Eric Gunnerson said:It's a feature vs. complexity thing.. While we agree that there are cases
where case ranges are useful, we don't think that their usefullness above
what you get with a simple series of if statements outweighs the increase in
complexity.
--
Eric Gunnerson
Visit the C# product team at http://www.csharp.net
Eric's blog is at http://blogs.gotdotnet.com/ericgu/
This posting is provided "AS IS" with no warranties, and confers no rights.
you don't remember or are too macho to admit it.Michael Culley said:If you've been coding in C for 8 years you have made this mistake, even if
you don't remember or are too macho to admit it.Michael Culley said:If you've been coding in C for 8 years you have made this mistake, even if
Keep on pratising your spelling, Edward!
Peter Vidler said:Hi,
Maybe YOU don't (doubtful), but many people do. Hence the design decision.
It's a feature vs. complexity thing.. While we agree that there are cases
where case ranges are useful, we don't think that their usefullness above
what you get with a simple series of if statements outweighs the increase in
complexity.
Pete, note that many != all!
Austin Ehlers said:I agree. However, what about adding syntax like this:
switch (num)
{
case 1 to 5:
//code
break;
}
and translate it to the appropriate IL as if it were written like:
switch (num)
{
case 1:
case 2:
case 3:
case 4:
case 5:
//code
break;
}
As this allows increased readability and is easily maintainable?
Thanks,
Austin Ehlers
Duncan McNutt [FTSE]. said:So a little thing like that that may aid code readability is not good but
adding crap like Lambada functions (anonymous methods) and partial types (
to aid splitting source files) that is good?
You have the BCLs make an entire pigs mess of VSplits and HSplits and you
say thats good?
Yet adding a simple thing like ranges into a case in the switch construct is
bad because you cant be assed to handle the complexity?
Pass the bong.
--
Duncan McNutt
Microsoft Product Deactivation Team
--
increaseEric Gunnerson said:It's a feature vs. complexity thing.. While we agree that there are cases
where case ranges are useful, we don't think that their usefullness above
what you get with a simple series of if statements outweighs the