How do you mean "when they are inspected"? If you do it then all functions 
which step through the keys would have to be fixed and some like *fold* and 
*map* could be very difficult to implement in an efficient manner. If you 
don't do it for all then it is pointless.

Robert


On Monday, 13 February 2017 22:49:13 UTC+1, Eric Meadows-Jönsson 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-core+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elixir-lang-core/5e3f4e37-bb6c-4688-bb86-5d430e095726%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to