|
Re: MSVC sucks so bad!
03/15/09 06:29 AM
|
|
|
> How? C++ vs C# ?
OK, compared to C# here are some advantages of Managed C++:
- Interact with unmanaged objects, functions and structures directly
- Distinct syntax for unmanaged pointer and managed reference
- Indexer property syntax
- Distinct syntax for scope resolution, member access and access through reference ("::", "." and "->" respectively, whereas C# uses "." for all three)
- Easy to explicitly box value types when you want reference semantics
- Separate declaration and implementation
- Split implementation while keeping declaration in one place (C# partial classes split both declaration and implementation, leading to a mess)
- Give access specifier once and then declare many members, rather than having to put access specifier on each one
- Full C99 preprocessor and macro metalanguage
- Full C++98 template metalanguage
- Separate RAII destructor and GC finaliser
- Visual Studio isn't as evil about reformatting your C++ code as it is with C#
Enough reasons for you? About the only disadvantage is that it doesn't integrate as well with the form designer.
|
|