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"},

Shameless plug: Check out @elixirstatus' other community project:

Credo, a new static code analysis tool that acts as a code linter, but also focusses on teaching coding practices and code consistency.