User | Kudos |
---|---|
8 | |
2 | |
2 | |
2 | |
1 |
See this github repository for a more complete proposal and an example implementation that gets us c....
Some languages like Rust and Zig have a feature called Tagged Enums (or Sum Types) that allow you to create a data type that can be one of a few different types where there is a name associated with each type. In LabVIEW, however, Enums are limited to consecutive numeric integer values -- there's no way to associate a type with each named value.
The power of combining an Enum with a data type for each value is that we could potentially use a Case Structure as a switch statement with type assertion and data conversion built in! This would allow us to create robust, type-safe code that is easier to maintain and understand.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.