#region

This topic contains 7 replies, has 5 voices, and was last updated by  cocon 2 years, 3 months ago.

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #6233

    cocon
    Participant

    How about a “#region” feature that it will create some sort of organization of the code base into logical groups (not source code groups). It will be pretty much useful only in the IDE.

    Perhaps if there is no point to nag the parser about this, then at least this workaround could be used:

    If nerobot reads this would decide about this, I just throw the idea. 🙂

    #6234

    codifies
    Participant

    ? what for ?

    If you need to split a single file into separate regions then its probably about time you, split the code into separate files, considering putting suitable code together in a class, etc….

    #6235

    cocon
    Participant

    Not that a file should be humongous, but it leads to a good habit of making clear cuts among the code from the start.

     

    Perhaps you might do a counter offer to split the code into sections with standard comments.

    Well, it does the trick in some sort of old-school approach, however the real difference with regions is that you will standardize this principle (of separating the code into sections) by design, rather than doing ASCII art.

    #6236

    codifies
    Participant

    Its just swapping one ascii soup for another, I just don’t see the point…

    #6237

    secondgear
    Participant

    @codifies #Regions are foldable. I personally find them quite useful, but that’s a matter of taste. They are supported by Jungle and Mollusk.

    #6239

    nerobot
    Participant

    This time Ted2go’s parser is based on mx2cc. When (and if) I will add an additional parsing of local scopes and add foldings.. then we can get this. Folding in editor and in code tree.. dreams 🙂

    Maybe via comment like this:

    ‘#region

    ‘#end

    #6242

    scurty
    Participant

    Yes, that would be amazing.
    +1

    #6274

    cocon
    Participant

    nerobot: If Mark doesn’t want to mess the parser further with other additions, this approach ‘#region would work. Let’s see about it in a few months from now.

Viewing 8 posts - 1 through 8 (of 8 total)

You must be logged in to reply to this topic.