3 ms·
> the opportunity to follow Rob Pike's Rule 5 was lost. std::set/std::map got into trouble because they chose the algorithm first and then made the data model
by 9rx 7mo ago
> the opportunity to follow Rob Pike's Rule 5 was lost.
std::set/std::map got into trouble because they chose the algorithm first and then made the data model match. Rule 5 suggests choosing the right data model first, indicating that it is most important.