Using _openExistential to construct a RawRepresentable type

You never need to use _openExistential for an existential with a protocol constraint. Write an extension method on the protocol instead; Self will be the opened type inside the method.

4 Likes