[erlang-questions] printed maps look confusing

Vlad Dumitrescu vladdu55@REDACTED
Mon Feb 3 14:44:28 CET 2014


Hi!

The default format for printing maps puts no space after the comma, but
only around the =>. The result looks confusing to me.

#{2 => 3,4 => 5}

3 and 4 look more related than 2 and 3 or 4 and 5.

Fixing this is a bit more job than adding a space, unless one wants to add
them to lists and tuples too. Removing the spaces around the arrow doesn't
look too nice either.

I can write a patch, but what is the best solution?

regards,
Vlad
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20140203/712feae2/attachment.htm>


More information about the erlang-questions mailing list