Solution 1: The Greeter
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
Level up your Elixir skills
Request a free email course
4 Comments
Log in to leave a comment
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!
ifis just a macro and it expands to a case.