Skip to content

Remove alignment spacing in variable lists and structs/classes #6

@hostilefork

Description

@hostilefork

One thing I'd ask before a 2.8 formal drop would be if it would be possible to go over all the files and just take out all the alignment spacing.

Reason is, that the maintenance and concern of something like:

int      something;
mystruct somethingElse;

Is just kind of crazy, because of the reformatting it takes when you add a longer-named thing:

int                something;
mystruct           somethingElse;
mylongernamedthing somethingStillDifferent;

Not only is it busywork you may or may not want to do, it also winds up meaning that if you have one functional line of change in the code...you are touching three lines in source control to mess with spacing.

The standard is generally just:

int something;
mystruct somethingElse;
mylongernamedthing somethingStillDifferent;

I happen to use a proportional font and syntax highlighting which makes the above look more along the lines of:

    int something;
    mystruct somethingElse;
    mylongernamedthing somethingStillDifferent;

Which to me calls out the necessary information and fits more on a page. Anyway, in an ideal world we'd be dealing with source code in a more "structured" form where everyone could just view it how they liked...but as long as it's text files I think it's best to do what works best for text file versioning and maintenance.

I'm willing to do the pre-release sweep using a prettyprinting tool to standardize all the files, and that way it can be something mechanical... two spaces is acceptable for indentation if that is the preference (I use 4 in my own code).

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions