if-else and Switch Expressions in Reason

Nik Graf
InstructorNik Graf

Share this video with your friends

Send Tweet

First we are going to investigate the if expression and compare it to JavaScript's if statement. If being an expression has multiple implications on how to use it. In the second part we are introducing the ReasonML's switch expression in it's simplest form using structural equality as well as the fall-through case.