---
title: "Discussion on \"Some functions can both fail and return nothing\" | Hashnode"
description: "Discussion on \"Some functions can both fail and return nothing\". In the previous post we've limited Union Types to just two kinds: ?T for T | None and !T for T | Error. One of the corollaries was that ?!T/!?T is not supported, because it would mean T | None | Error"
url: "https://hashnode.com/posts/some-functions-can-both-fail-and-return-nothing/6adee747102e6d4a66cf2c5d"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Some functions can both fail and return nothing](https://dimagog.hashnode.dev/some-functions-can-both-fail-and-return-nothing?utm_source=hashnode&utm_medium=feed)

In the previous post we've limited Union Types to just two kinds: ?T for T | None and !T for T | Error. One of the corollaries was that ?!T/!?T is not supported, because it would mean T | None | Error

Oct 26 · 8 min read · dimagog.hashnode.dev  
Read the article

-   [#programming-languages](https://hashnode.com/tag/programming-languages)
-   [#error-handling](https://hashnode.com/tag/error-handling)

## Written by

[Dmitry Kakurin](https://hashnode.com/@dimagog)

@dimagog · Seattle, USA

  
[View profile](https://hashnode.com/@dimagog)

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
