Re: VS.NET-style code outlining?
Re: VS.NET-style code outlining?
- Subject: Re: VS.NET-style code outlining?
- From: Keith Esau <email@hidden>
- Date: Tue, 24 Feb 2004 14:55:16 -0600
On 02/24/2004 1:58 PM, "Erik Hanson" <email@hidden> wrote:
> On Feb 23, 2004, at 2:41 PM, Jeff Biggus wrote:
>> On Feb 23, 2004, at 3:04 PM, Ken Tozier wrote:
>>
>>> That sounds great! My only experience with collapsable code was years
>>> ago in UserLand Frontier and I've wished for it in every development
>>> environment since. The pseudo-code/first comment idea is great.
>>
>> I brought this up also a bit ago, and it's good to hear that others
>> want this feature too. Project Builder used to have this feature in
>> the NeXT days. Not sure why it was taken out. (I'm still mad that
>> tear-off menus were taken from me when Public Beta came out, but
>> that's another issue.)
>
> If a block of code can be collapsed and replaced with a comment, why
> not extract it into its own method? That would not only make the code
> easier to read, it would increase the chance of reuse and probably
> improve the structure of the code. I'd like to see Xcode development
> time spent on extracting the method for me rather than collapsing the
> code.
The most common reason is that the block uses variables in the scope of the
enclosing function that are not available elsewhere, but are not changed in
the scope of the block, making the block itself collapsible.
Keith Esau
email@hidden
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.