Re: Language options: Objective-C, Swift, C or C++?
Re: Language options: Objective-C, Swift, C or C++?
- Subject: Re: Language options: Objective-C, Swift, C or C++?
- From: Stephane Sudre <email@hidden>
- Date: Sun, 21 Jun 2015 12:24:34 +0200
On Wed, Jun 17, 2015 at 10:16 AM, Quincey Morris
<email@hidden> wrote:
> On Jun 17, 2015, at 00:56 , Graham Cox <email@hidden> wrote:
>>
>> To me this is actually a good thing that I’ll be sorry to see go away in Swift.
>>
>> With a separate header that only contains the public stuff, I can see at a glance what a class does without being overwhelmed by its implementation details.
>
> It’s already done in Swift 2. While you’re editing in the one pane, the Counterparts setting in the assistant pane (which in Obj-C shows the .h when you edit the .m) shows exactly this view, along with documentation (///) comments. It actually shows public and internal API within a module (basically the same thing), but I assume when used cross-module it shows only public API, but I haven’t had a chance to try that yet (though this is what Command-click on Cocoa APIs shows you, so I assume it works the same).
Maybe I misinterpreted the presentations, but this is not a property
of the language (i.e. Swift 2), it's the IDE that does this. Which
means that would you edit Swift code in TextWrangler, you would still
only have the verbose source file.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
References: | |
| >Re: Language options: Objective-C, Swift, C or C++? (From: Roland King <email@hidden>) |
| >Re: Language options: Objective-C, Swift, C or C++? (From: Carl Hoefs <email@hidden>) |
| >Re: Language options: Objective-C, Swift, C or C++? (From: Quincey Morris <email@hidden>) |
| >Re: Language options: Objective-C, Swift, C or C++? (From: Graham Cox <email@hidden>) |
| >Re: Language options: Objective-C, Swift, C or C++? (From: Quincey Morris <email@hidden>) |