I don't understand this: why do the protocols have to inhabit the global namespace?
Why can't we nest them inside other types?
enum World {
protocol Foo {} // Error: Protocol 'Foo' cannot be nested inside another declaration
}
I don't understand this: why do the protocols have to inhabit the global namespace?
Why can't we nest them inside other types?
enum World {
protocol Foo {} // Error: Protocol 'Foo' cannot be nested inside another declaration
}