Hacker News new | past | comments | ask | show | jobs | submit login

I don't think Swift's enum with associated values are pattern matching. You can use pattern matching to unpack them though. (https://docs.swift.org/swift-book/documentation/the-swift-pr...)



Yea, I was sloppy with my language. But the point stands, and the unions are intrinsically tied to pattern matching.


I can't tell if your point stands because it was too sloppy.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: