News for hackers. Stuff that matters.
Re:Embedded Swift on the Raspberry Pi Pico by wilg on Wednesday March 06, 2024 @02:25AM (#39613254)
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...)
Re:Embedded Swift on the Raspberry Pi Pico by bmitc on Wednesday March 06, 2024 @08:24AM (#39615692)
Yea, I was sloppy with my language. But the point stands, and the unions are intrinsically tied to pattern matching.
Re:Embedded Swift on the Raspberry Pi Pico by wilg on Wednesday March 06, 2024 @10:20PM (#39624722)
I can't tell if your point stands because it was too sloppy.