Visual Font for Diagramming Elixir

Some quick thoughts in mostly random order:

  • a more common confusion (in my experience) for novices is Map vs Keyword - the only difference in their inspect output is [ ] vs %{ }. Continuing the pattern above, a kwlist would look like a cross between the symbol for %{} and [] but I’m not sure if that stands out enough :thinking:

  • an important part of tuples is the fixed size, especially versus lists. What about using the “interlocking protrusion” like on “key” and “value” to join together tuple elements instead?

  • some list algorithms will match more than one element in a head:

      def some_complicated_list_thing([first_thing, second_thing | moar_things]) do
    

    so a variant of list that distinguishes multiple elements before the dashed vertical bar could be handy

1 Like