[swift-evolution] [Post Swift 3] [Proposal] Introducing `group` mechanism

Adrian Zubarev adrian.zubarev at devandartist.com
Wed Jun 29 12:43:34 CDT 2016


Am I understanding your feedback right that you’re in favor of this:

public class func member1() {}
public class func member2() {}
public class func member3() {}
public class func member4() {}
public class func member5() {}
Instead of:

public class group {

    func member1() {}
    func member2() {}
    func member3() {}
    func member4() {}
    func member5() {}
}
And you’re argument is ‘scrolling back’?

If so, I’d think that you’re logic would also apply to the default access modifier on extensions.



-- 
Adrian Zubarev
Sent with Airmail

Am 29. Juni 2016 um 19:35:35, L. Mihalkovic (laurent.mihalkovic at gmail.com) schrieb:

-1 looks like a kludgy hack. 
It will force people to have to scroll back to the declaration of a group (with no assistance to find where it is) in order to ascertain the visibility of a given method, while pushing code further to the right for every single method. Couple that with the zealous following of the 80c rules and that makes for a less than stellar coding experience... all in the name of not have to type a modifier.
Regards
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20160629/02b9929b/attachment.html>


More information about the swift-evolution mailing list