Seventh monthly bors newsletter Continuous Integration with Semaphore

ShorterMaps 2.2 released: ES6 map shorthand for Elixir

Tired of this? %{id: id, first_name: first_name, last_name: last_name, address_1: address_1, address_2: address_2, city: city, zip_code: zip_code}

ShorterMaps provides the map syntax you wish vanilla Elixir allowed:

~M{id, first_name, last_name, address_1, address_2, city, zip _code}

Version 2.2 is a tremendous upgrade in capability: ShorterMaps now can work with expressions alongside elided keys, e.g.:

~M(id, first_name, last_name, full_name: "#{first_name} #{last_name}")

Check it out on Github. Try it out with {:shorter_maps, "~> 2.0"},

ElixirWeekly: The Elixir Community Newsletter, covering community news you easily miss, shared on ElixirStatus and the web, in one email every Thursday.