[swift-evolution] [Pitch] Nesting types without nesting in place (additional)

John McCall rjmccall at apple.com
Fri May 20 12:17:36 CDT 2016


> On May 18, 2016, at 11:00 AM, Adrian Zubarev via swift-evolution <swift-evolution at swift.org> wrote:
> May I revive this idea for a discussion. 
> 
> When I posted this first I didn’t thought about creating these nested types inside extensions.
> 
> So basically I could do this (over and over):
> 
> extension SomeClass {
>    class NestedClass { … }
> }
> 
> But we have to surround a new nested type by an extension scope which is more boilerplate to my eyes than just `class SomeClass.NestedClass` instead.
> 
> Is this worth a proposal?

You're welcome to submit a proposal, but I personally don't think I'd support it; this seems like it just creates another way to write something for very little benefit.

John.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20160520/c8682008/attachment.html>


More information about the swift-evolution mailing list