Click here to Skip to main content
15,894,291 members
Articles / General Programming / Architecture

Union Types in the Practical Type System (PTS)

Rate me:
Please Sign up or sign in to vote.
5.00/5 (1 vote)
30 Nov 2023CPOL23 min read 4.9K  
Union types (aka sum types, variants, choice types) provide an elegant solution for frequent programming tasks.
This article explains why union types are essential, how they are supported in PTS, and which benefits they offer.

Views

Daily Counts

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer
Luxembourg Luxembourg
Curious programmer. Zealous simplifier. Lifelong student of life.
I care about creating software that is easy to use, reliable, and maintainable.
https://www.cnpp.dev

Comments and Discussions