Research any topic before you write.

Find related topics. | Discover entities. | See connections. | Build a topical map.

Tagged union

In computer science, a tagged union, also called a variant, variant record, choice type, discriminated union, disjoint union, sum type, or coproduct, is a data structure used to hold a value that could take on several different, but fixed, types. Only one of the types can be in use at any one time, and a tag field explicitly indicates which type is in…

Science & Products

Use the mouse wheel or two fingers (on touchscreens) to zoom in and out of the map.

Research this topic

Explore the main themes, entities and connections around Tagged union. Start with the topic map, then use the sections below for research and deeper semantic analysis.

Explore this topic

Start with a few of the strongest sections from the source topic. These are research directions, not a list of keywords you must use.

Description

31 related topics

Language support

27 related topics

Advantages and disadvantages

9 related topics

Class hierarchies as tagged unions

5 related topics

Topics to explore

Browse the full topic structure. Each item opens a new analysis centered on that subject.

Overview

Description

Advantages and disadvantages

Examples

Language support

Class hierarchies as tagged unions

Advanced semantic analysis

Deeper signals for content research, entity SEO and topical coverage. The plain-language headings explain what each technical view is useful for.

Map overview Semantic statistics

Tagged union

Nodes87
Edges86
Triples53
Avg. degree1.98
Density0.022989
Components1

How this topic connects Entity context

See the strongest relationship patterns around the current topic before diving into the raw triples.

Tagged union

Top relations

related to Class hierarchies as tagged unions · 9
Tagged union → An, Hence, In, It, Nevertheless, RTTI, Scala, Some, The
related to Description · 6
Tagged union → Compile-time, Haskell, ML, Rust, Tagged, They
related to Examples · 5
Tagged union → Leaf, ML, Node, The, This
related to Advantages and disadvantages · 4
Tagged union → Some, The, Untagged, When
related to C# · 3
Tagged union → The, Thedefaultvalue, With
related to C++ · 3
Tagged union → The, Ts, While
related to Rust · 3
Tagged union → For, It, The Rust
related to Cyclone · 2
Tagged union → Cyclone, These
related to Haxe · 2
Tagged union → Haxe's, These
related to Java · 2
Tagged union → In Java, Pattern

Important terminology Word statistics

Use these terms to understand the vocabulary surrounding the topic, not as a checklist for keyword stuffing.

Important terminology

tagged type unions union types data tag value used class called may also handled case sum cases example pattern variant

Entity relationships Subject–Predicate–Object triples

SubjectPredicateObjectConfidenceSrc
MLinstance ofDescriptionTagged unions are most important in functional programming languages0.80text
Haskellinstance ofDescriptionTagged unions are most important in functional programming languages0.80text
where they are called datatypesinstance ofDescriptionTagged unions are most important in functional programming languages0.80text
Scala allow base classes to beinstance ofSome languages0.80text
Tagged unionrelated to Advantages and disadvantagesThe0.60section
Tagged unionrelated to Advantages and disadvantagesUntagged0.60section
Tagged unionrelated to Advantages and disadvantagesSome0.60section
Tagged unionrelated to Advantages and disadvantagesWhen0.60section
Tagged unionrelated to ALGOL 68In ALGOL0.60section
Tagged unionrelated to C#The0.60section
Tagged unionrelated to C#With0.60section
Tagged unionrelated to C#Thedefaultvalue0.60section

Related concept clusters Concept neighborhoods

These clusters group vocabulary that occurs around closely connected concepts in the source material.

    Connections between topic areas Semantic bridges

    Bridges can reveal useful research angles that are easy to miss in a flat list of related terms.

    Min side: 3
    For writers, content strategists, SEOs, marketers and creators — from quick topic research to advanced semantic analysis.