Need a type-centric language for the web? Learn about the most salient features of ReasonML, a new syntax and toolchain that leverages the power of both JavaScript and OCaml.
Overview
Syllabus
Introduction
- Why ReasonML could be the language for you
- Base knowledge and setup
- Variables and data types
- Functions and annotations
- Decisions with if and switch expressions
- Output with Js.log()
- Challenge: Quadratic formula
- Solution: Quadratic formula
- Creating your own data types
- Say goodbye to null and undefined
- Creating modules for reusable code
- Using collection types
- Creating record types
- Challenge: Generating random cakes
- Solution: Generating random cakes
- Web pages with ReasonReact
- Explore ReasonML resources
Taught by
J. David Eisenberg