At work we deal with a lot of JSON and so it's common to have the
equivalent of JSON in Elixir. A common problem people on my team have when
they write out the Elixir structure is that they miss converting trailing
commas into hash rockets.
They have this:
%{"x": 1}
Instead of:
%{"x" => 1}
Because both look like a string, it's very easy to miss. I'm suggesting
warning about the latter syntax as it can be a source of errors.
My goal is that it become more obvious that you've made this type of error.
If people don't like this suggestion, I'd love to hear other ideas about
ways this problem could be addressed.
--
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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/elixir-lang-core/14344c22-06a8-42c2-a827-29359a826ad0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.