|
|
|
|
|
by _gabe_
1088 days ago
|
|
> If the rules are too complicated, then they are a challenge for all parties, both users and implementers Not necessarily. Generics, and/or C++ templates are a pain to parse because they're context sensitive. But while reading/writing code it's typically obvious whether I'm writing a comparison or a generic/template. Foo<Bar> foo;
// VS
Foo < Bar;
Likewise, in C++ you can end up with: unordered_set<tuple<int, float>> mySet;
// >> is ambiguous here without a symbol table or context around the statement
Foo >> 5;
I think both of these are fairly obvious as a user of the language, but boy am I glad I don't have to parse that! |
|