Beware of non-determinism due to iteration order of pointers
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
Made changes in the text based on comments:
@dblaikie: "Might be worth pivoting this a bit differently to talk about ordering of pointers if that's the specific niche we're going to discourage/outlaw. (this could happen on std::set/map/etc too, when used with pointer keys)
Also "sort before iteration" is a bit too strong since it's only about when iterating to produce an ordered result (if it's an iteration to compute, say, a total or some order-agnostic summary/result, that's fine)."
docs/CodingStandards.rst | ||
---|---|---|
814 | Thanks for the suggestions @dblaikie. How does this sound? |
Comment Actions
Sure, good enough for me.
I'd probably drop "iteration" from the title (maybe "Beware of non-determinism due to ordering of pointers" ?).
& maybe in the last sentence "like vector/MapVector/SetVector".
Thanks for the suggestions @dblaikie. How does this sound?