al******@gmail.com wrote:
You have higher level, lower level, and those languages in between.
Generally speaking higher level languages are considered more
productive at the cost of a slower runtime. While lower level
languages are less productive but usually produce a faster runtime. On
the low end when would you choose C++ over C. It seems that many OS's,
device drivers, and DB's are written in C. And when would you use C++
over higher level languages. Where does C++ shine? I am looking for
answers that are specific (not anything you would use C for that is
over 50,000 lines of code) either a name of an existing project or
characteristics that of a project that would make you choose C++.
In industry, the language chosen for a project is often dictated by
management rather than by logic. C++ is often imposed because it is now a
mature language and there are many C++ developers.
However, this is no longer future proof and most people are now moving away
from C++ to higher-level, more modern languages like C#:
http://www.google.com/trends?q=c%2B%...o=all&date=all
Objectively, C++ has little to offer these days. It lacks almost all modern
features in any usable high-level way (GC, first-class lexical closures,
higher-order functions, currying, type inference, sum types, tuples,
interactivity, safety, brevity, efficient exceptions, pattern matching,
list literals, functors, marshalling, hashing, macros, concurrency, web
programming, scripting etc.), it is unreliable, unnecessarily verbose and
often difficult to optimise.
--
Dr Jon D Harrop, Flying Frog Consultancy
OCaml for Scientists
http://www.ffconsultancy.com/product...ex.html?usenet