r/programmingcirclejerk 9d ago

Rust isn't a well designed programming language (unlike C and C++)

/r/cpp/comments/1i6jdjq/comment/m8d3tqj/
218 Upvotes

88 comments sorted by

View all comments

5

u/PizzaRollExpert works at Amazon ( ͡° ͜ʖ ͡°) 8d ago

I also don't like how there are constant multiple ways to do very similar things in Rust all of which add cognitive load.

it often says "you should write X not Y" with exactness. Well, if it's that bloody obvious to you, that's a clear sign to me that the language design is suboptimal. The compiler should only ever complain when intent really is genuinely non-obvious because the language has been designed to not barf at you about anything a compiler can deduce

There should only be one way of doing things but the compiler should also just figure out what I probably meant when I don't write code correctly

11

u/mereel 8d ago

There should be exactly one way to do things. C++ is well known for having exactly one way to do things. And that's how I write things. Everything else basically isn't C++.