Re: Disappointment in VC++ .Net in VS2008



I have no C++/CLI
experience per se so I can't speak to that but I really have to ask, does
it
really offer anything that C# doesn't.

If you've been using C# for 2 years, you'll presumably be familiar
with "using" - so that's one thing C++/CLI doesn't need, and more
importantly there's no need to guess when you ought to use "using".

I assume you're referring to the using "statement" for cleaning up resources
via "IDisposable" opposed to the using "directive" for eliminating the
explicit use of namespaces (or for creating aliases). This is a relatively
trivial issue IMO and one that's fairly well-defined. I don't think there's
as much guess-work here as you're suggesting. Sometimes there is but I think
it's more the fault of the .NET docs which are very weak IMO. I do agree
that it's ugly compared to a C++ destructor however (if this is what you're
alluding to) and have even argued that in past (in the C# NG). I'm sure
C++/CLI has its own warts however and it's certainly no reason to pick
C++/CLI over C#.

And of course, it has seamless access to native C/C++ code.

Also a trivial issue for most applications IMO but I agree that it is a
problem. This has nothing to do with C# however. The .NET framework simply
hasn't closed the gap but it will probably narrow it in time. Of course it
never could completely close the gap and hope to remain platform neutral.
Nevertheless, I've had to do some of my own nasty P/Invoking so your point
is well-taken. I don't think most developers have to go very far with it
however. If they do then they probably shoudn't be using .NET in the first
place.

For good or bad, C#
was invented from the ground up for that environment and it's a natural
fit.

But even now there are some OS facilities that aren't accessible from
managed code.

Agreed as previously noted.

You'ld therefore be better off stripping out most of the native C++ stuff
but
by the time you do that you're mostly left with raw C++ syntax only.

Some companies have millions of lines of tested C/C++ code, they
aren't going to throw that away - ever (until it's of no use to them).

That's a very good point but I seriously doubt a lot of companies are
migrating mega-applications like this. More likely they're trying to
leverage old C++ code in newer .NET apps. In any case it's really by
necessity and not based on technical merit. If you're starting a new
application from scratch then I stick by my original post.

If you think I'm a fan of all this however, understand
that I think C# was a big mistake in the first place and C++ should have
been used from the outset.

An ally to the cause after all :)

I don't like it but the cause is now lost. While I'll be returning to my C++
roots eventually, I believe the language is in permanent decline on Windows.
On the bright side it means more $ down the road for vets like myself (what
are COBOL programmers now making) so do I now qualify as a traitor?


.



Relevant Pages

  • Re: Cheap, decent brand of ergos
    ... filling a "gap" in the market, IMO.... ... I just paid $575 for a 6 year old, little used, ...
    (rec.sport.rowing)
  • Re: where will the action be ?
    ... IMO they should have done something themselves in the ... RAD web development space before IW and EWF came along to fill that unfilled ... gap, or before they used ASP.NET to plug that gap. ... In this case Borland were lagging the market opportunities and needs. ...
    (borland.public.delphi.non-technical)
  • Re: Codegear in the news
    ... CodeGear faces a larger gap than ever before between their current ... offerings and Microsoft's, ... IMO, this is a stale argument too. ...
    (borland.public.delphi.non-technical)
  • Re: RIP Edward Kennedy
    ... for a Life-Time of Service to the Nation - Amen. ... maker Teddy." ... speak to a couple people I haven't got to speak to in a while. ... What is even sadder and scarier IMO, is that there has been a couple ...
    (rec.radio.shortwave)
  • Re: race report: staten island half marathon
    ... I pointed to and referenced an array of scientific research, data, and ... Do not speak to the referenced research/data and 2) ... Personally focus on me? ... a fate of +24 imo is baseless. ...
    (rec.running)

Quantcast