Erik Engheim
1 min readApr 27, 2021

--

Here is a challenge, tell me a problem C++ solved, and I'll tell you languages which solve this problem better 😉

The point here isn't that C++ doesn't offer advantages over C for a given problem. The point is that there are certain needs where C will be a good match. Then there are other problems where C will not be a good match. While C++ may seemingly solve your problem down the line it is really just creating a whole host of new problems.

C++ adds are large array of problems that don't even exist in C. Few languages the complexities C++ has e.g. with constructors. Copy constructors, implicit constructors. Move semantics, the list keeps going on and on.

Java and C# are not great counter examples as they are developing similar levels of complexity as C++.

Have a look at Objective-C, Swift, Go, Rust, Nim, Haxe, OCaml, Dart e.g.

Personally if I was to guess what appeals to you I would suspect Go or Swift would fit you. I notice at least when I do C++ development that pretty much every problem I hit would have been solved much easier in Swift. I actually like Go more, but it is not quite a direct replacement for C++. More of a replacement for C. But that might be what you are looking for.

--

--

Erik Engheim
Erik Engheim

Written by Erik Engheim

Geek dad, living in Oslo, Norway with passion for UX, Julia programming, science, teaching, reading and writing.

Responses (1)