

1·
25 days agofactorial(4) = 24
c/unexpectedfactorial


factorial(4) = 24
c/unexpectedfactorial


Rust and C are very similar so I’m not going to argue with that the primary difference is safe memory in rust, and more embedded hardware support in C, which depends entirely if you plan on building embedded systems.
On a fundamental, computer architecture/assembly/ALU level, I’ve never understood how python works asynchronously; how is it able to run code blocks in a non-sequential paradigm.


README’s are documentation.
The intention of C++ was to be C’s replacement by adding objects into the programming language while also maintaining the fast compilation and runtime that came with C. In the end it resulted in longer compilation and runtime times (from the millisecond scale to seconds scale), which made it generally unappealing for embedded systems.
On a production code standpoint, if were comparing it to something like python, it is debatable, but there’s just a large learning curve associated with the language that could otherwise be avoided with a different OOP language. By trying to accomplish everything, it fails to implement everything well to compete with other languages.