Month: January 2018

guards in Elixir 1.6

Elixir 1.6 has been released with a lot of nice additions to the language, but without a doubt, what I’m most pumped about is real guard support in the language. Before 1.6, you could constraint a function like so: def change_settings(%User{admin: is_admin}, settings) when is_admin == true do # Update the settings is only available…

Read the full article