Support sum types? #28
|
Does PKL support sum types (e.g. Swift enum)? I assert that any language established in 2024 should inherently support such features. |
Answered by
bioball
Feb 4, 2024
Replies: 1 comment 1 reply
|
Yes: https://pkl-lang.org/main/current/language-reference/index.html#union-types |
1 reply
Answer selected by
byte-sourcerer
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Yes: https://pkl-lang.org/main/current/language-reference/index.html#union-types