Skip to content

Comment on Why Java folks should stop looking down on C#: differences in similarities

Comments

Suprised that reflection wasn't really mentioned outside of the concept of generics. Reflection in .NET (and C#) is extremely powerful and useful.

All those other things that people have already commented on like Lambdas, expression trees, events and delegates, are incredibly nice to have.

Here's the first thing I write when I start a Java project, followed directly by an abstract class based on it:

public interface ICallback<T> { public void Invoke(T state); }

Does that give you something better than Fuction<T,V> (aside from not requiring a return type)? http://google-collections.googlecode.com/svn/trunk/javadoc/c...

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.