C++uties
It is time that the author of these lines has to admit something. He’s tired of ugly code trying to win the C++ beauty contest. Regardless of how hard we try to convince ourselves that the code we presented a few sections before is beautiful and is worth remembering, well, it is not. It is ugly and horrible, and please forget, dear reader, that you ever had to read something like that. Apologies.
From this point on, we solemnly promise that we are up to no more mischief and will treat you only with beautiful code. No more ugly macros, no more shady substitutions, no more arcane techniques. Just pure, joyful, lovable C++.
As a result of this reinvention of ourselves (as the writer of beautiful C++ code), we present you the next program, which possibly is the cutest one you can get your hands on:
Please bear with us, for the sake of brevity, we have omitted the includes for std::string
, std::cout
, and std::unique_ptr
. Who said C+...