Bringing Pattern Matching To Typescript

With the emergence and wide adoption of libraries such as React, Redux or XState, in the last few years the frontend ecosystem has shifted from an imperative to a declarative programming model. Now that we have realised how much easier it is to reason about declarative code and how many bugs are ruled out by embracing this paradigm, there is simply no going back.

Yet, Javascript and TypeScript weren’t designed for this paradigm, and these languages are lacking a very important piece of the puzzle: declarative code branching.

This talk will demonstrate how we can write conditional logic that is easy to read and maintain using ts-pattern, a Pattern Matching library for TypeScript.

Gabriel Vergnaud is a data visualisation software engineer @ Datadog passionate about application architecture, programming language design and colouring pixels.

Datadog sponsored this event with a raffle about t-shirts and a lovely box full of cupcakes for one of us, great!

Event Coverage