This is the solution to the challenge from Lesson 1. It's a program that asks your name and then greets you by name... and has a special response for its programmer.
Source code for this episode
This is the solution to the challenge from Lesson 1. It's a program that asks your name and then greets you by name... and has a special response for its programmer.
Source code for this episode
4 Comments
Instead of a
if
, we could use a guard clause again. More Elixirish, no? ;)Hey Mark, in larger, more complicated programs, is there any performance difference for using case vs if/else?
@Eastwood: Nope!
if
is just a macro and it expands to a case.