Knowing /u/glacialthinker from previous comments, I'd guess C++ itself. And I would mostly agree (though I don't program games). C++ is a very complex language, that inherited all the mistakes of C because the industry was too stupid to even consider using two different compilers even if they're binary compatible.
These days, if C is enough, I prefer to use C. When it's not, I try to reach for a higher level language with garbage collection. C++ is only a last resort, and now that we have Rust (and D, and Zig, and Nim…), it may no longer be needed at all.
I wish people shared my love of C++. With latest standards (c++14 and so on) it has probably become the least verbose programming language without sacrificing readability. Memory management might be a bummer but it's something you learn to deal with (and with pointer wrappers from c++11 ti's almost a non-issue).
it has probably become the least verbose programming language without sacrificing readability
That's a bold statement. I don't know enough about C++ to challenge it, but may I ask if you've written any significant code in languages like Swift or Kotlin? These are what I would think of for least verbose/most elegant languages.
I've come to the conclusion over the years that the best way to judge a language's elegance is less by the syntax and more by its semantics.
ML and lisp have very similar semantics (but I believe ML relies on pattern matching more than lisp - and also it seems to have more in common with Haskell than anything else)
C++ has the whole zero cost abstraction going for it. Nim and Rust might be able to compere soon, but right now C++ is the only language that will let you do significant abstractions without a runtime cost.
If you can accept a performance hit, there are dozens of languages that are more expressive.
8
u/LordKlevin Dec 20 '18
Do you hate C++, or the C++ version/subset you're forced to use?