Skip to content
Tech News
← Back to articles

Copper language creator trims union types down to option-type-only experiment

read original get Types and Programming Languages book → more articles
GoKawiil Brief

The developer behind the Copper programming language describes scaling back an earlier attempt at full union types (lists of alternative types a value can hold) to a simpler, option-type-only design. The post details restrictions imposed for efficient compilation, including banning nested unions and treating type order as significant to simplify value representation and enable syntactic sugar for common error-handling patterns.

Why It Matters

GoKawiil's interpretation of the reporting above, not reported fact.

The trade-offs described illustrate a recurring tension in language design between expressive type systems and compiler simplicity or performance, particularly for low-level languages aiming to interoperate with existing C libraries. Restricting unions to ordered, non-nested pairs could make the feature easier to implement and faster at runtime, but may limit flexibility for more complex type-safety use cases that fuller union types support in other languages.

Key Takeaways
Worth a Look

Types and Programming Languages book — This classic text dives deep into type systems, including union and option types, giving solid theoretical grounding for language designers experimenting like in this article. It's a great companion for anyone building or tinkering with a language's type system.

See Types and Programming Languages book on Amazon → Affiliate link — we may earn a commission on purchases, at no extra cost to you. Product picked by AI based on this article; it is not a tested recommendation.

Source: tibleiz.net, 2026-11-02

Published there as: “Union Types and Option Types”

Read the original report → The summary and analysis above are GoKawiil's own, written from reporting by the source above. Facts and quotes belong to the original publisher.