Maps with less keys than 32 are printed in sorted order today so new devs
would already be confused. This change would make it more consistent at
least.

On Tue, Feb 14, 2017 at 7:55 PM, <jisaacst...@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/ms
>>> gid/elixir-lang-core/CAM_eapis0_a16Z6HqptYtc2ekCQ46-eh_uzHZt
>>> QYkfQ1yHE%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/2d64f24b-df25-4644-acd6-
> f5d5633ea720%40googlegroups.com
> <https://groups.google.com/d/msgid/elixir-lang-core/2d64f24b-df25-4644-acd6-f5d5633ea720%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
> For more options, visit https://groups.google.com/d/optout.
>



-- 
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-core+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elixir-lang-core/CAM_eapgowcD7NdPRk5-_bd4-6Rwdi4CT0g5v%2BJA%2BgC1RrA4cag%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to