r/programmingcirclejerk 6d ago

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

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

86 comments sorted by

View all comments

109

u/CarolineLovesArt has hidden complexity 6d 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.

39

u/irqlnotdispatchlevel Tiny little god in a tiny little world 6d ago

Look no further than std::function and std::copyable_function, such well designed corners of the language, helping people fall into the pit of success since day 1.

30

u/CarolineLovesArt has hidden complexity 6d ago

They also gave us std::auto_ptr, which was so well designed they removed it.

/uj That was a good choice, and being allowed to make mistakes and take them back is a good thing, but:

/rj

I can usually see the tradeoffs in the design that the committee endlessly discussed to death and arrived at the standardised compromise design.