You seems to be a Javascript/Rust guy looking at your post history. It seems that you have learnt C with classes instead Modern C++ because you commented that C++ program has more lines.
Modern C++ is concise and much more like Javascript these days. There is this conference video that compare both.
You have RAII in Modern C++ so no need to cry for seg faults.
It lacks a NPM like package manager but rest is I swear amazing. C++20 Modules will solve this too.
Safe is nobody's word except Rustic Propagandists. Writing safe "Modern" C++ is much easier than it was prior 2011.
Modern C++ abstractions sometimes made me wonder why people still use Java.
C++20's Concepts Lite will make Modern C++ even more safer.
Rust is unsafe and you yet to see a software that written in Rust for the Airplane companies, railway etc ...
Modern C++ is concise and much more like Javascript these days. There is this conference video that compare both.
You have RAII in Modern C++ so no need to cry for seg faults.
It lacks a NPM like package manager but rest is I swear amazing. C++20 Modules will solve this too.
Safe is nobody's word except Rustic Propagandists. Writing safe "Modern" C++ is much easier than it was prior 2011.
Modern C++ abstractions sometimes made me wonder why people still use Java.
C++20's Concepts Lite will make Modern C++ even more safer.
Rust is unsafe and you yet to see a software that written in Rust for the Airplane companies, railway etc ...