Topic: Practically speaking how different is C# from C++?
Blayne Bradley
unregistered
posted
C# as I understand it is more geared to .NET and network programming C++ is more of an Object Oriented language, what sort of practical differences would I be seeing if I tried to program in C#? I'm pretty well acquinted with C++ just not quite with C#.
IP: Logged |
posted
C# is not very much like C++, besides being an imperative, object-oriented language that is in the same syntax family (C-like languages).
It is definitely "more geared" to .NET, in the sense of being written to be part of .NET, while managed C++ is C++ mangled to fit in .NET. Is is not any more 'geared to' network programming than C++, though, and is definitely not less object oriented.
The main practical differences are, better built in libraries for C# (though the collections library is bad; there's a better 3rd party open source one), some interesting language mechanisms (type inference and LINQ, to name a couple), and garbage collection (not that you can't have garbage-collected objects in C++).
Posts: 15770 | Registered: Dec 2001
| IP: Logged |
posted
They're both Turing-complete (modulo memory limits, of course) programming languages for von Neumann architectures. So the differences are really quite tiny in the big picture.
Posts: 10645 | Registered: Jul 2004
| IP: Logged |
posted
Of course, so are prolog, haskell, befunge, and regular expressions with the perl extensions, so having those qualities is, for almost all practical purposes, nearly useless for determining if a language is similar.
Posts: 15770 | Registered: Dec 2001
| IP: Logged |
quote:Originally posted by Blayne Bradley: C# as I understand it is more geared to .NET and network programming C++ is more of an Object Oriented language, what sort of practical differences would I be seeing if I tried to program in C#? I'm pretty well acquinted with C++ just not quite with C#.
It would be a disaster. Of course I pretty much assume that would be true if you tried to do [i]anything[i] in [i]anything[i].
Posts: 127 | Registered: Aug 2001
| IP: Logged |