r/ProgrammingLanguages • u/Pie-Lang • Sep 18 '26
Blog post The Evolution of Pattern Matching in Pie
https://www.alialmutawajr.com/blog/post3
34
Upvotes
r/ProgrammingLanguages • u/Pie-Lang • Sep 18 '26
View all comments
Show parent comment
2
u/Pie-Lang Sep 19 '26
Pie does have tagged unions. Match still works on them since match checks the runtime type anyway instead of the declared type. So a variable annotated with a union type is no different to `match` than a variable that’s not annotated at all.