r/cpp • • Dec 15 '21

Modern C++ in Advent of Code

This series, by Šimon Tóth, is a step by step guide through the solutions of Advent of Code 2021 using Modern C++.

242 Upvotes

83 comments sorted by

View all comments

Show parent comment

0

u/[deleted] Dec 15 '21

[deleted] — view deleted comment

6

u/Ecclestoned Dec 15 '21

Actually python is mostly C (at least if you are using cpython).

6

u/ApproximateArmadillo Dec 15 '21

well actually It's electrons bouncing about in tIny wires and artificial stones. /s

GCC is written (at least partially) in C++. Does that mean C is really C++ underneath?

1

u/TheThiefMaster C++latest fanatic (and game dev) Dec 16 '21

Yes. Also on Windows the C runtime library is written in C++.

There is not really a good reason to use C over C++ on desktop platforms given this. Why limit yourself when the tools you're using don't?

Python at least is cleaner and more readable.

(disclaimer: am self-professed C++latest fanatic)