[swift-evolution] In-line scope designators

Tino Heth 2th at gmx.de
Tue Jun 20 11:32:08 CDT 2017

> You can already effectively have these "regions" using extensions, with the exception of stored properties since they can't be placed there.
I still think nested extensions would have been a good addition to the language: If we had those, 

struct MyType {
	private {
		var myPrivateVar: Int?
		var anotherOne: String?

would be a rather small piece of syntactic sugar...
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20170620/3eeee1ee/attachment.html>

More information about the swift-evolution mailing list