Re:Why did Microsoft create C#? Wasn't Java good enough in t...
by scarface74 on Monday February 12, 2018 @01:14PM
(#16360566)
Java 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-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.
Re:Why did Microsoft create C#? Wasn't Java good enough in t...
by polskibus on Sunday February 11, 2018 @01:41PM
(#16354028)
How does Java linq look like?
Re:Why did Microsoft create C#? Wasn't Java good enough in t...
by marxama on Sunday February 11, 2018 @04:01PM
(#16354776)
IMO 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.
Re:Why did Microsoft create C#? Wasn't Java good enough in t...
by looperhacks on Sunday February 11, 2018 @01:47PM
(#16354068)
I think he's referring to the Stream-API
Re:Why did Microsoft create C#? Wasn't Java good enough in t...
by pjmlp on Sunday February 11, 2018 @02:17PM
(#16354227)
It is the Stream API.
Re:Why did Microsoft create C#? Wasn't Java good enough in t...
by Max-q on Sunday February 11, 2018 @01:39PM
(#16354019)
Annotations are a Java innovation.
Edit: this is not correct. My bad.
Re:Why did Microsoft create C#? Wasn't Java good enough in t...
by pjmlp on Sunday February 11, 2018 @02:16PM
(#16354224)
C# 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?
- Boxing
- annotations
- StringBuilder
- LINQ
- var (coming with 10)