Dextrin.Symbol (Dextrin v0.1.0)

Copy Markdown View Source

DXN symbol — a bare, unevaluated identifier reference. Wraps a plain String.t(), never an Elixir atom: atoms are never garbage collected on the BEAM, and a decoder fed adversarial or merely large third-party input must not be able to exhaust the atom table by decoding enough distinct symbols. A caller who trusts their input and wants a real atom can always convert explicitly.

Summary

Types

t()

@type t() :: %Dextrin.Symbol{name: String.t()}

Functions

new(name)

@spec new(String.t()) :: t()