Several years after I swore I would never work in C++ again, I agreed to do C++ in order to get a job with a company I was really interested in joining. I ended up working on a project that used C++ with lots of rules and restrictions, and it was not too bad except for lots of boilerplate.
I would like to see something better come along that has some of the low-level power of C, but also supports sophisticated high-level abstractions. I was hoping Go might fit that bill, but the Go designers have made some interesting choices that seem to alienate a lot of developers.
> I would like to see something better come along that has some of the low-level power of C, but also supports sophisticated high-level abstractions
Objective C this very well. It adds classes and protocols. Closures can be implemented with blocks. Everything else is the same as in C.
As a C++ programmer dabbling in Objective-C, I have been extremely impressed. After clearing the "weird syntax" hurdle, Objective-C is a beautiful language. It is object-oriented, type-safe when you want, dynamic when you want, and C-compatible without all the problems C++ added.
However, much of joy of using Objective-C is Apple's Cocoa Foundation classes. Stuff like autorelease and NSString are not part of Objective-C's core language. And support for Objective-C or Cocoa on non-Apple platforms is limited or not well-supported.
The problem with Objective-C is that it only adds things, it doesn't make the C part easier to use or safer.
As you've said: everything else is the same as in C.
I've been intending to try Objective C for many years now. I like C, I like Smalltalk, and I like Mac OS. Maybe when I finish my degree, but there's no time now.
Maybe try D? Andrei Alexandrescu likes it, and he knows C++ really well.
My theory is, upon reading his book, is that he knows it as well as all but two or three people anywhere.
Could you please clarify that a bit? That would imply that either everybody knows C++ or that I don't. Thanks!
My reading of that comment is that he's saying you're in the top 4 worldwide..
Lysdexia is killing me.
This I think is the power of C++ - it is a multi-paradigm language, and you are perfectly free to not use some of the paradigms, or more powerful techniques.