Type declarations in protocols / protocols as namespaces?

Just an attempt to see if it can be clarified what this means. I think I'll need someone to spell it out for me in a terser way :blush: .

The thread that the above quote is from is originally about nesting protocols inside other types:

I'm asking about the opposite:


However, @Slava_Pestov's post that you quoted above, does seem to answer my question as it addresses the case of nesting struct/enum/class inside protocols, but I'm not sure I understand what the conclusion is :blush::

Does this mean that it won't be a big step to allow struct/enum/class nested inside protocols?

(That is, type declarations in protocols / protocols as namespaces?)

1 Like