Packages

Interior mutability, at your own risk.

Current section

Files

Jump to
interior README.md
Raw

README.md

# interior
[![Package Version](https://img.shields.io/hexpm/v/interior)](https://hex.pm/packages/interior)
[![Hex Docs](https://img.shields.io/badge/hex-docs-ffaff3)](https://hexdocs.pm/interior/)
![Erlang-compatible](https://img.shields.io/badge/target-erlang-b83998)
![JavaScript-compatible](https://img.shields.io/badge/target-javascript-f1e05a)
👺 Interior mutability in Gleam.
## ⚠️ Disclaimer
Types in Gleam are immutable for a reason! As such, you should use immutable data structures whenever possible.
Don't use this library to shortcut structuring your code and APIs in a functional way that embraces immutability!
That being said, there are some scenarios where it can be handy to have shared mutable state, and in those situations this library provides a target-agnostic way for achieving interior mutability.