Lambda the Ultimate

inactiveTopic C# From A Java Developer's Perspective
started 11/19/2001; 10:09:36 AM - last post 11/20/2001; 1:26:13 PM
Chris Rathman - C# From A Java Developer's Perspective  blueArrow
11/19/2001; 10:09:36 AM (reads: 2105, responses: 3)
C# From A Java Developer's Perspective
A comparison betwixt Java & C# over on Kuro5hin - pretty good rundown of the differences.

Most developers, especially those with a background in C or C++, would probably agree that features like operator overloading, pointers, preprocessor directives, delegates and deterministic object cleanup make C# more expressive than Java in a number of cases. Similarly, Java developers who learn C# will be pleasantly surprised at features that are missing in Java that will seem glaring in their absence once one uses them in C#, such as boxing, enumerations and pass by reference. On the other hand the lack of checked exceptions, inner classes, cross platform portability or the fact that a class is not the smallest unit of distribution of code makes the choice of C# over Java not a clearcut case of choosing more language features without having to make any compromises.

Personally I think of C# and Java as being pretty much the same language, with some feature rearrangement here and there. I don't see much in C# that is a significant advancement. The real differences are in the underlying VM's and libraries (API's), not in the languages.
Posted to OOP by Chris Rathman on 11/19/01; 10:11:51 AM

Ehud Lamm - Re: C# From A Java Developer's Perspective  blueArrow
11/20/2001; 3:12:24 AM (reads: 998, responses: 0)
What about generics?

Chris Rathman - Re: C# From A Java Developer's Perspective  blueArrow
11/20/2001; 11:48:45 AM (reads: 979, responses: 1)
Well, neither of them really have generics yet. C# does some boxing tricks with primitives, but it pretty well follows Java's notion of typing.

Just one more indication that they are really the same language. :-)

Ehud Lamm - Re: C# From A Java Developer's Perspective  blueArrow
11/20/2001; 1:26:13 PM (reads: 1030, responses: 0)
We had a link here some months ago about generic programming support by CLR (or was that CLI ). It seemed like adding real genericity to C# was just around the corner.