3 ms·
Microsoft got sued by sun so they got rid of their VM and made C#. C# copied java, but its evolved and now has a lot of cool features.
by samfisher83 9y ago
Microsoft got sued by sun so they got rid of their VM and made C#. C# copied java, but its evolved and now has a lot of cool features.
- pjmlp 9y agoJava also ended up copying quite a few features of C# back. - Boxing - annotations - StringBuilder - LINQ - var (coming with 10)
- Max-q 9y agoAnnotations are a Java innovation. Edit: this is not correct. My bad.
- pjmlp 9y agoC# Attributes were introduced in .NET 1.0. Released in 2002. Betas were available already during 2001. Java annotations started to be discussed in 2002, with JSR-175, finally delivered with Java 1.5, released in 2004. So how come it is a Java innovation?
- Max-q 9y agoYou are absolutely right. My bad.
- polskibus 9y agoHow does Java linq look like?
- looperhacks 9y agoI think he's referring to the Stream-API
- pjmlp 9y agoIt is the Stream API.
- marxama 9y agoIMO it's completely inferior to LINQ in C#. One of the main reasons being that Java still lacks extension methods, so you're stuck with the methods that are provided for you. In C#, if I want a Dedupe in my LINQ method call chain, I can simply implement it myself.
- scarface74 9y agoJava didn't copy Linq. It copied Linq syntax. Linq is not just about syntax it's about expression trees or "code as data". http://www.dotnettricks.com/learn/linq/understanding-expression-and-expression-trees http://www.dotnettricks.com/learn/linq/understanding-express... A Linq expression can be translated at runtime to allow the same code to be tranlated to Sql for an RDMS , MongoQuery, or anything else that you write a provider for.