Brian Leach wrote:
Hi

I thought about adding code folding to mvDeveloper, but with Pick/Basic it 
doesn't really work in the same way.

If you have a language that is function or member based, there is a very clear 
boundary for each function, e.g.

Could a mild folding (fold the ones there is no dispute about) work? If it worked 90% of the time (but 100% correct) I would use it. Just leave the indeterminate ones un-folded.

I have tinkered some with folding in vim with U2, but I have not worked it into my workflow yet.

Good examples Brian.
private void doSomething{
  code in here
}

which makes it easy to collapse.

The problem with Pick/Basic is that there isn't always a clear boundary.
If your subroutines are all like this, it will work:

GoSub MySubroutine

MySubroutine:
  code here
Return

But an IDE or editor has to be able to cope with bad style/design as well as 
good, so you may have the following:

If SomeTest Then
   GoSub MySubroutine
End Else
   GoSub JumpIntoTheMiddle
End

MySubroutine:
   If SomeTest Then
      Return
   End
   (code)
   (falls down into...)
JumpIntoTheMiddle:
   (some more code)
    Return

Here you have overlapping labels, and more than one return. Which means that 
the boundary isn't clear. It can be done, but it makes it more complicated.

Brian
_______________________________________________
U2-Users mailing list
[email protected]
http://listserver.u2ug.org/mailman/listinfo/u2-users

_______________________________________________
U2-Users mailing list
[email protected]
http://listserver.u2ug.org/mailman/listinfo/u2-users

Reply via email to