👨💻 TIL about shorter_maps
:
Elixir ~M sigil for map shorthand. ~M{id, name} ~> %{id: id, name: name}
Not sure if I approve or not but client is using inside of test files, where this pattern can feel repetitive. Interesting.
👨💻 TIL about shorter_maps
:
Elixir ~M sigil for map shorthand. ~M{id, name} ~> %{id: id, name: name}
Not sure if I approve or not but client is using inside of test files, where this pattern can feel repetitive. Interesting.