4 ms·
C# is not based C/C++, It is based on Java. In the beginning Microsoft created its own Java compiler and called it J++. Then there was a lawsuit by Sun that
by ThinkBeat 4y ago
C# is not based C/C++,
It is based on Java.
In the beginning Microsoft created its own
Java compiler and called it J++.
Then there was a lawsuit by Sun that went
on for a while.
Microsoft decided to cancel J++
and instead, shortly afterwards C# 1.0
was released and the language was
extremly similar.
I was using early C# 1.0 Betas and it was even
more obvious.
Later editions and certainly C# 2.0 which introduced
generics took a different path than Java and
today they are different.
- joneholland 4y agoThis isn’t totally accurate. J++ was an actual JVM implementation, c# ran on the .net runtime that was being developed at the same time for the next generation of Visual Basic. While the languages looked superficially similar, the runtime and base class library is significantly different. After the sun lawsuit, Microsoft dropped j++ and released j#, which allowed for a weird hybrid of Java but with the .net class library running on the .net runtime. This was short lived because why use this over c#, and has been mostly forgotten to history.
- hackerfromthefu 4y agoIts also heavily based on Delphi/C++ Builder, which evolved from Turbo Pascal.
- tompazourek 4y agoCan you please elaborate?
- Clubber 4y agoAnders Hejlsberg worked at Borland for many years and was heavy into creating Delphi. He was hired away from Borland to Microsoft. Having said that, it's more the IDE than the actual language. Delphi and C# aren't similar syntactically. C# is a C styled language while Delphi is a Pascal styled language (well it is Pascal/Object Pascal in everything but name). There are some similarities though, for example, C# has standard data types along with objects like Delphi where Java does not (at least last time I checked). Visual Studio early on and Visual Studio today are very similar to the Borland dev studio when Hejlsberg was working there. I've used both languages/IDEs in my career extensively, albeit I haven't used Delphi in probably 15-20 years. https://en.wikipedia.org/wiki/Anders_Hejlsberg https://en.wikipedia.org/wiki/Anders_Hejlsberg
- tompazourek 4y agoThanks. I always thought that all this IDE kind of stuff came from Visual Basic. But I guess Delphi was an influence too.