4 ms·
Two points should be considered. First, trivial: what's exactly mediocre in the Rust example? I don't think it's mediocre at all. Now, the second, which is si
by pizza234 6y ago
Two points should be considered.
First, trivial: what's exactly mediocre in the Rust example? I don't think it's mediocre at all.
Now, the second, which is significant: what constitutes a "mediocre" C++ program? The author is the engineer who built the Meson build system - his code is representing the output of an experienced engineer.
This brings to the usual C/++ criticism: it makes it easy to make certain class of mistakes even for experienced programmers.
- golergka 6y ago> First, trivial: what's exactly mediocre in the Rust example? I don't think it's mediocre at all. A better way to phrase it would be "code produced by a middle-level engineer". It just so happens that in Rust a regular, adequate, middle-level engineer can easily write the best possible code because the language guides him to it, but in C++, a regular engineer still wouldn't know about some gotchas that would make his code inferior. It's unknown unknowns: Rust shows most of them to you, while C++ stays silent.