Linked by Thom Holwerda on Mon 20th Jul 2009 15:54 UTC, submitted by Brandon L
Thread beginning with comment 374247
To view parent comment, click here.
To read all comments associated with this story, please click here.
To view parent comment, click here.
To read all comments associated with this story, please click here.
RE[3]: Who wants that crap anyway?
by Moochman on Tue 21st Jul 2009 09:07
in reply to "RE[2]: Who wants that crap anyway?"
RE[4]: Who wants that crap anyway?
by tuttle on Tue 21st Jul 2009 09:47
in reply to "RE[3]: Who wants that crap anyway?"
What do you have against the collections library?[q]
The collections library is incomplete (almost no concurrent collections, only recently added a set class. No interface for sets, confusing and inconsistent naming).
[q]It's not like you need to import the whole thing, you only import the classes you need....
The collections library is incomplete (almost no concurrent collections, only recently added a set class. No interface for sets, confusing and inconsistent naming).
[q]It's not like you need to import the whole thing, you only import the classes you need....
The using statement does not work for generic classes or interfaces. Try importing just System.Collections.Generic.List<T>. It is not possible.
So why bog down the System namespace with this stuff (since that's essentially equivalent to importing it by default).
Because IEnumerable is used everywhere. There are various language features (foreach, yield, LINQ) that depend on IEnumerable. So it is a core interface just like System.Array is a core class.
And the system namespace is bogged down with lots of less important stuff like the obsolete MarshalByRefObject and other remoting-related classes.







Member since:
2006-03-01
I can only assume this is a prime example of how behind the times Visual Studio is compared to just about every Java IDE. Are you telling me you can't just type in the class and have a pop-up option automatically let you import it, without your hands leaving the keyboard or your cursor leaving the position? IntelliJ, NetBeans and Eclipse have had that feature for years.... "
Of course there is code completion. But code completion and automatic code generation does not make the code easier to understand.
The issue I have is that core interfaces like IEnumerable<T> are mixed with the collections library that I do not want to use.
This is just one example out of hundreds for bad design decisions.