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

Back to index

4 Comments

Instead of a if, we could use a guard clause again. More Elixirish, no? ;)

- jtoulouse · 6 years ago

Hey Mark, in larger, more complicated programs, is there any performance difference for using case vs if/else?

- Eastwood · 5 years ago

@Eastwood: Nope! if is just a macro and it expands to a case.

- alchemist · 5 years ago
- masoud · 2 years ago