[Mono-dev] Suggestion: Mono.Collection really useful

Robert Jordan robertj at gmx.net
Sat Sep 30 08:23:12 EDT 2006


Francisco Modesto wrote:
> I'm new with Mono and C#. I come from java world. I think you are doing a 
> great job, congratulations! I've to admit that mono (C#) language are more 
> powerful than java. Events is one thing I miss in high level languages.

Mono is not C#. See http://mono-project.com/FAQ:_General.
> 
> I did'n understand some things. Why the effort for be 100% compatible with 
> Microsoft, if they did'nt want to be compatibles with nothing???

See the FAQ.

> Someone can explain why System.Collection.IList has Item[]???? A list is not 
> an array!!!! Maybe ToArray() method that returns an array?

See the docs of IList "IList represents a collection of objects that can
be individually accessed by index".

.NET doesn't distinguish between random access and sequential lists.

> I miss a lot of classes, specially Collections class. List, Map, Set... I 
> think the main power of Java is that you as programmer only have to worrier 
> about your own problem, not implementing a lot of common stuff code.

List -> ArrayList
Map -> Hashtable
Set -> Hashtable (or BitArray)

Not to speak about the generics of .NET 2.0 and the C5 framework.

It's a bit late to chime in starting a discussion about collection
design 4 years after .NET has been released. That's usually called
"not-invented-here-syndrome" ;-)

Robert




More information about the Mono-devel-list mailing list