whatyouhide / short_maps

⚠️Retired⚠️ library that provided a ~m sigil for ES6-like map destructuring in Elixir.
https://andrealeopardi.com/posts/a-story-of-regret-and-retiring-a-library-from-hex/
76 stars 5 forks source link

Struct support #2

Closed jwarlander closed 9 years ago

jwarlander commented 9 years ago

Add support for matching structs as well; something that can be especially useful in function heads etc, where you often want to make sure the supplied parameter is of the correct type, as well as pick out fields from the struct.

whatyouhide commented 9 years ago

Hey @jwarlander, thanks!

Great job. Before merging, could you update the documentation for sigil_m? I'm referring to the @doc.

jwarlander commented 9 years ago

Right you are.. does that look good?

whatyouhide commented 9 years ago

Yup! Looks great. Thanks!