---
title: "Comment by Jason Gill on \"Stop catching errors in TypeScript; Use the Either type to make your code predictable\" | Hashnode"
description: "Why use Either instead of a discriminated union?"
url: "https://hashnode.com/posts/stop-catching-errors-in-typescript-use-the-either-type-to-make-your-code-predictable/61740f980f452c1cd94fa17c/comment/64a97af9395b682e51ab5b46"
---

[Discussion](https://hashnode.com/posts/stop-catching-errors-in-typescript-use-the-either-type-to-make-your-code-predictable/61740f980f452c1cd94fa17c)

Comment [Stop catching errors in TypeScript; Use the Either type to make your code predictable](https://hashnode.com/posts/stop-catching-errors-in-typescript-use-the-either-type-to-make-your-code-predictable/61740f980f452c1cd94fa17c)

[Jason Gill](https://hashnode.com/@jsongill)

[Jul 8, 2023](https://hashnode.com/posts/stop-catching-errors-in-typescript-use-the-either-type-to-make-your-code-predictable/61740f980f452c1cd94fa17c/comment/64a97af9395b682e51ab5b46)

Why use Either instead of a discriminated union?
