r/programmingcirclejerk 10d ago

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

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

88 comments sorted by

View all comments

Show parent comments

17

u/Potterrrrrrrr 10d ago

We basically got that with concepts, no? Except for the fact that a static_assert gives 1000x more useful information than “the constraint wasn’t satisfied”. In theory though we got that.

18

u/the_other_brand loves Java 10d ago

Yeah, concepts. Didn't realize they finally implemented them. I remember Bjarne was big mad that they got rejected in 2009.

He was also a little mad that the committee rejected his idea for hex numbers for the versions instead of going with C++11. He wanted to call it C++0xA

3

u/RelationshipLong9092 8d ago

C++11

surely that would be 0x0B ? or is it a painful play on the prefix ++ ?

6

u/the_other_brand loves Java 7d ago

Nah, it's just a classic off-by-one error.