Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Programming Language to Replace C++

Name: Anonymous 2010-08-11 21:49

I think we can all agree that C++ is a terrible language. So why is it still around?

When talking to most C++ users (game developers, systems programmers), I've found that most seem to recognize C++'s faults, but they don't really care. They aren't even the slightest bit interested in a new language that might solve its problems, even one that gives them all the power of C++ with none of the downsides. You can't even get them to look at something new.

Why is that? Why does everyone just 'live with it' without wanting to improve the situation?

Name: Anonymous 2010-08-17 2:17

>>63
Objective C is a real superset of C (as opposed to an almost superset, like C++) that adds objects with dynamic dispatch evocative of smalltalk.  Version 2.0 adds garbage collection and a bunch of syntactic sugar.  Objective C is not only way older than D, but it's almost as old as C++ (C++ was way worse back then).

The Cocoa libraries are only a little bit like the .NET or Java libraries.  The Cocoa libraries are geared almost exclusively towards making desktop / mobile applications, so you won't find an equivalent to, e.g., ASP or JSP for Cocoa.  The Cocoa libraries also assume that you already have a working standard C library, whereas the Java platform and .NET platform start from the ground up.

Cocoa is the best library for writing desktop/mobile UIs bar none.  Qt has a good reputation, but if you've seen the kind of preprocessing they have to do to get a decent UI API in C++, you'll just chuckle.  Of course, most sane people don't use Objective C for non-UI parts of their code, except those eccentric developers that only target Apple platforms.

For big, cross-platform apps go ahead and write your code in C++ and then make the GUI on the Mac/iPhone use Objective C.  Yes, they are completely interoperable (no, you can't subclass classes from one in the other, but nobody wants to anyway).  This way you can keep your cross-platform C++ code without having to try to write an UI in C++, which as every C++ UI library ever demonstrates, is a total pain.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List