<div dir="ltr"><br><div class="gmail_extra"><div class="gmail_quote">2017-10-27 12:56 GMT+02:00 zxq9 <span dir="ltr"><<a href="mailto:zxq9@zxq9.com" target="_blank">zxq9@zxq9.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br>
I can't believe we are having this discussion. Again.<br></blockquote><div><br></div><div>I will admit that I haven't been following the list that closely recently, but I wasn't aware that this discussion has been had before.</div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
Having a discussion about internal ordering in the context of efficient matches and comparisons *in implementation*: totally logical<br>
<br>
Relying on that implementation detail to leak out: ridiculous<br></blockquote><div><br></div><div>Again, quoting from the EEP: </div><div><br></div><div>«<span style="font-size:12.8px">The underlying structure does not need to be sorted, an order could be produced when needed»</span></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">I think that among those who fully accepted the maps API returning elements in arbitrary order, most would have assumed that lists:sort(maps:to_list(M)) would do the trick (and, according to the EEP, it would), and were perfectly content with that.</span></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">What I brought up was the (admittedly subtle) point that even if you WANTED to settle for that, it actually doesn't produce the sort order that applies to maps internally, and there is no function, anywhere, that will give you that result - even one where the docs are riddled with warnings about its inefficiency.</span></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
This discussion comes up a little more frequently than once a year and every time it reminds me of watching distributed systems engineers (try desperately to) explain CAP theorem tradeoffs to a VP of marketing.<br></blockquote><div><br></div><div>Am I the VP of marketing in this story?</div><div><br></div><div>BR,</div><div>Ulf </div></div></div></div>