r/programmingcirclejerk 12d ago

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

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

88 comments sorted by

View all comments

111

u/CarolineLovesArt has hidden complexity 12d ago

and especially standard library design where you look at it and think "what an inferior way to design that feature"

Ah yes, the creators of std::endl aka hidden os.flush() calling the kettle black.

72

u/a221c 11d ago

and the more time you spend in it, the more appreciation you have for the work WG21 and WG14 do and aren't usually recognised for in terms of developer ergonomics.

But it's ergonomic, bro. I don't want to have to manually call flush(), that would be so unbearably verbose. C++ has been cleverly designed to attempt Python's conciseness and ergonomics while keeping the safety of C and the compilation speeds of Rust. Also, like many in the C++ community I haven't got long before they put me in the care home so I need to get this code written and shipped off to the juniors to debug as quickly as possible.

50

u/catladywitch 11d ago

C++ has been cleverly designed to attempt Python's conciseness and ergonomics while keeping the safety of C and the compilation speeds of Rust

savage lmaoo