arkus.space
  • Home
Sign in Subscribe

Type Safety

A collection of 1 post
Exhaustive Switch Statements in TypeScript
Type Safety Featured

Exhaustive Switch Statements in TypeScript

When working with enums in Rust, I realized that switch statements in TypeScript are not exhaustive. This means that the compiler doesn't warn you if you forget to handle a case in a switch statement. This is a problem because it can lead to bugs that are difficult
Jun 14, 2023 5 min read
Page 1 of 1
arkus.space © 2025
  • Sign up
Powered by Ghost