Hello Everyone! I'm following Elixir community for a long time and recently
I decided to start my first Elixir project, and I'm really enjoying it.
Thanks for bringing us this awesome tool.
I noticed that many times I write the following pattern matching for maps:
test "test descritption", %{var_a: var_a, var_b: var_b} do
# Test case here
end
This happens mostly on test cases and it's really boring. My suggestion is
to add a shorthand matcher (like the shorthand object destruction in
Javascript). The test case could be rewritten like:
test "test descritption", %{var_a, var_b} do
# Test case here
end
Kindly regards,
Gustavo
--
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/CAJDRqnUkEEuN-U%2BYuZ1NXGrGu8mXLpEx7wXpitxVT4UmTeGXXQ%40mail.gmail.com.