You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With existing type system, union can be expressed as a Partial with only one field set.
The only drawback is that serialization format may require unions to be handled differently, see https://serde.rs/enum-representations.html
The text was updated successfully, but these errors were encountered:
Miha-x64
changed the title
Union types (Kotlin: sealed classes; Rust & Swift: enums)
Union types, ADTs (Kotlin: sealed classes; Rust & Swift: enums)
Jun 1, 2019
With existing type system, union can be expressed as a
Partial
with only one field set.The only drawback is that serialization format may require unions to be handled differently, see https://serde.rs/enum-representations.html
The text was updated successfully, but these errors were encountered: