Constrain protocol usage outside the module

I agree that closed protocols would be useful in a number of contexts and would love to see them added.

Depending on your level of comfort with workarounds and boilerplate (that's easy to generate) there is a hack you can use right now! Emulating closed protocols in Swift · GitHub

That's obviously not a substitute for real language support, but it's worth knowing about in the meantime.

2 Likes