Go ProSign in
Hide playlist

    if-else and Switch Expressions in Reason

    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.

    You must be a Member to view code