And who does read any documentation when he sees the same output on the cli
every time? Documenting the behaviour hasn't helped for charlists either...

OvermindDL1 <overmind...@gmail.com> schrieb am Di., 14. Feb. 2017, 20:37:

> I honestly would not, the map documentation very clearly states at
> https://hexdocs.pm/elixir/Map.html that:
>
> > Key-value pairs in a map do not follow any order
>
> :-)
>
>
> On Tuesday, February 14, 2017 at 11:55:12 AM UTC-7, jisaa...@gmail.com
> wrote:
>
> I'd be a little nervous that new devs might get the impression that maps
> are always sorted....
>
> (I'm not necessarily opposed to the idea though)
>
> On Monday, February 13, 2017 at 9:31:31 PM UTC-8, Paul Schoenfelder wrote:
>
> +1 from me!
>
> On Mon, Feb 13, 2017 at 4:49 PM, Eric Meadows-Jönsson <
> eric.meado...@gmail.com> wrote:
>
> Currently struct and map keys are in indeterminate order when they are
> inspected. Due to implementation details in the VM maps that have <32 keys
> are in term order but for larger maps and structs the order is random.
>
> I propose always sorting the map keys when they are inspected so that it's
> easier to read and scan the results.
>
> --
> Eric Meadows-Jönsson
>
> --
> You received this message because you are subscribed to the Google Groups
> "elixir-lang-core" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to elixir-lang-co...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/elixir-lang-core/CAM_eapis0_a16Z6HqptYtc2ekCQ46-eh_uzHZtQYkfQ1yHE%2B2g%40mail.gmail.com
> <https://groups.google.com/d/msgid/elixir-lang-core/CAM_eapis0_a16Z6HqptYtc2ekCQ46-eh_uzHZtQYkfQ1yHE%2B2g%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "elixir-lang-core" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to elixir-lang-core+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/elixir-lang-core/49866d3d-07fb-4218-b537-860d0bbb546c%40googlegroups.com
> <https://groups.google.com/d/msgid/elixir-lang-core/49866d3d-07fb-4218-b537-860d0bbb546c%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"elixir-lang-core" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to elixir-lang-core+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elixir-lang-core/CA%2BbCVsuj9yP0ATXY8M_JRM7iARHekcN%3DmDybuLxt11VPthCS%3DA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to