Earlier quoted context omitted.
That's quite surprising to me. As someone who writes a lot of Javascript, I usually find it easiest to read with this syntax than without it, and I generally recommend to my team that they use the shorthand where they can. This is because the meaning is clear and well-known, and being concise (while still being clear) is very valuable. I wonder what specifically the original author found made it more difficult to rea…
The map '%{username, age, first_name, last_name}' would be 1 character away from the tuple '{username, age, first_name, last_name}'. It is easy to miss the '%' character and you'll waste some time figuring out why your code is throwing match and/or function clause errors at runtime.
Re: Show HN: es6_maps, new Elixir syntax feature via runtime compiler hacking
#31Using this logic [username, age first_name, last_name] is only 2 characters away.
This example is easy to catch because tuple and map work completly different-it's not python.