Coding Challenge: Create a Mini DSL
Understand how to create a mini DSL to simplify flight creation for an airport, using smart constructors and type-safe checks to manage arrivals and departures. This lesson guides you through adding types, parameter validation, and exhaustive handling to build a functional flight system using fp-ts.
We'll cover the following...
We'll cover the following...
Problem statement
Let’s create a mini DSL that makes it easier to create (correct) flights for an airport.
Notice that we’ve already defined a couple of useful types. Flights have different ...