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. |
Beta Was this translation helpful? Give feedback.
Answered by
bioball
Feb 4, 2024
Replies: 1 comment 1 reply
-
Yes: https://pkl-lang.org/main/current/language-reference/index.html#union-types |
Beta Was this translation helpful? Give feedback.
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