Apple recently introduced a language they call Swift or Objective-C without the C. It is technically a completely different language from Objective-C though. When C++ started out it had the major benefit that it was (mostly) compatible with C which at the time was immensely popular, making it trivial to mix new C++ code with existing C code. Today C is still a popular language but not as widely used as it once was. Assuming that C++ could drop C compatibility, how would you take that opportunity to improve C++?
Isn't Swift that ridiculously slow language that managed to end up *SLOWER THAN PYTHON* on benchmarks even though it used LLVM ? Or maybe you're talking about the *other* Swift language, since Apple apparently picked a name that was already taken.
We already have that language. It's called D. And the popularity of D compared to C++ is probably telling. C++ has all those ugly warts because it's used so widely, in too many different application areas. D isn't that compatible to everything that has a C API.
C++ without the C (Score:5, Interesting)
Apple recently introduced a language they call Swift or Objective-C without the C. It is technically a completely different language from Objective-C though. When C++ started out it had the major benefit that it was (mostly) compatible with C which at the time was immensely popular, making it trivial to mix new C++ code with existing C code. Today C is still a popular language but not as widely used as it once was. Assuming that C++ could drop C compatibility, how would you take that opportunity to improve C++?
Re: (Score:0)
Isn't Swift that ridiculously slow language that managed to end up *SLOWER THAN PYTHON* on benchmarks even though it used LLVM ?
Or maybe you're talking about the *other* Swift language, since Apple apparently picked a name that was already taken.
Re: (Score:0)
We already have that language. It's called D. And the popularity of D compared to C++ is probably telling. C++ has all those ugly warts because it's used so widely, in too many different application areas. D isn't that compatible to everything that has a C API.
Re: (Score:0)
The question is, would Bjarne Stroustrup make D?