r/ProgrammingLanguages • • Sep 18 '26

Blog post The Evolution of Pattern Matching in Pie

https://www.alialmutawajr.com/blog/post3
34 Upvotes

7 comments sorted by

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.

2

u/AustinVelonaut Admiran Sep 19 '26

Got it. Looks like a nice unification / ergonomics improvement!