Tag: Sum Type

The Sum Type in V Programming Language

Written by on July 2, 2023 in Programming, Vlang with 0 Comments
The Sum Type in V Programming Language

A Sum data type in V language gives us a convenient way to hold objects of many distinct types (at any time, just one object) and hence is a discriminated union. For example, in C++ we have the variant type. Here is an example of sum type in V language: In the above program, the […]

Continue Reading

Top