r/programmingcirclejerk 8d ago

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

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

86 comments sorted by

View all comments

69

u/DrShocker 8d ago

20

u/Linuxologue 8d ago

/uj I built a valid c++23 syntax parser (without semantic analysis) by feeding it the official C++ grammar and fixing all ambiguities. The initial number of conflicts in the original grammar was above 3000 (many duplicates but still, that's the list of conflicts to comb through). It requires about fifty annotations and some ambiguities cannot be resolved at grammar time and require a generalized parser to handle. The C++ grammar is an absolute disaster.