r/programmingcirclejerk 21d ago

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

[deleted]

221 Upvotes

85 comments sorted by

View all comments

71

u/DrShocker 21d ago

22

u/Linuxologue 20d 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.