3 key differences between Elixir and Ruby?

Haven’t even gotten in to the stuff from #2 yet but I can’t wait to see everything Elixir is capable of, but I whole heartedly agree with pattern matching / multiple arity being a game changer. I genuinely got excited when I was watching a tutorial and saw someone type this line:

“def calculate(arr) when length(arr) <= 1 do”

Never seen anything quite like it before.

1 Like