[swift-dev] switches versus the visitor pattern?

David Zarzycki zarzycki at icloud.com
Fri Aug 11 16:48:05 CDT 2017


Hello,

Before I spend time creating patches, are there arguments against converting exhaustive switch statements to the visitor pattern in the Swift source base? In particular, I’m curious about switches that reason about the TypeKind enum.

Thanks,
– Dave


More information about the swift-dev mailing list