# Type systems are leaky abstractions: the case of Map.take!/2

DevFeed: [Type systems are leaky abstractions: the case of Map.take!/2](<https://devfeed.tech/articles/type-systems-are-leaky-abstractions-the-case-of-map-take-2-44027.md>)

Original publisher: [Read original article](<https://dashbit.co/blog/type-systems-are-leaky-abstractions-map-take>)

Author: José Valim

Published: 2026-03-03T00:00:00Z

Content type: article

Language: en

Sources: [Dashbit Blog](<https://devfeed.tech/sources/dashbit-blog.md>)

Topics: [Programming](<https://devfeed.tech/topics/programming.md>), [Elixir](<https://devfeed.tech/topics/elixir.md>), [function](<https://devfeed.tech/topics/function.md>), [subtype](<https://devfeed.tech/topics/subtype.md>), [standard](<https://devfeed.tech/topics/standard.md>), [Code](<https://devfeed.tech/topics/code.md>), [Data structures](<https://devfeed.tech/topics/data-structures.md>)

Tags: [article](<https://devfeed.tech/tags/article.md>), [code](<https://devfeed.tech/tags/code.md>), [elixir](<https://devfeed.tech/tags/elixir.md>), [function](<https://devfeed.tech/tags/function.md>), [programming](<https://devfeed.tech/tags/programming.md>), [programming-languages](<https://devfeed.tech/tags/programming-languages.md>), [standard](<https://devfeed.tech/tags/standard.md>), [structure](<https://devfeed.tech/tags/structure.md>), [type-system](<https://devfeed.tech/tags/type-system.md>)

## AI overview

An article examines how adding a type system to Elixir exposes limitations in the proposed Map.take!/2 function. It discusses map records, missing keys, raising behavior, and the difficulty of expressing the function's output type precisely.

## Source excerpt

Adding a type system to an existing dynamic language is a great exercise in showing all of the different ways type systems restrict the expressive power of programming languages. In this article, we will discuss one of said examples by exploring a potential `Map.take!/2` function as part of Elixir's standard library.