State clearly in the documentation that the iteration of a Set occurs in undefined order #23269
Labels
docs
This change adds or pertains to documentation
Hacktoberfest
Good for Hacktoberfest participants
Since Sets hash items depending on memory locations, this is not deterministic. Therefore iterating over a Set will traverse items in undefined order.
This behaviour has been the cause of some hard to find bugs for me. I am not saying that there is something wrong with it, but it should be clearly stated in the documentation, so that we are alert.
The text was updated successfully, but these errors were encountered: