I approved DIP1036e

kdevel kdevel at vogtner.de
Sun Jan 21 22:49:45 UTC 2024


On Sunday, 21 January 2024 at 19:20:21 UTC, Meta wrote:
> [...] I forgot to run the formatting tool before pushing, I 
> want to scream. Just automate it and a whole class of PR 
> nitpicks/arguments disappears, and everyone is better off.

What about code which is more art than craft?

     this(int a, int aa, int aaa, int aaaa, int aaaaa)
     {
             this.a = a;
            this.aa = aa;
           this.aaa = aaa;
          this.aaaa = aaaa;
         this.aaaaa = aaaaa;
     }

     double carefullyHandAlignedIndentation(double 
x________________________,
                                            double 
y________________________,
                                            double 
z________________________)
     {
         return 0;
     }

dfmt --brace_style otbs produces

     this(int a, int aa, int aaa, int aaaa, int aaaaa) {
         this.a = a;
         this.aa = aa;
         this.aaa = aaa;
         this.aaaa = aaaa;
         this.aaaaa = aaaaa;
     }

     double carefullyHandAlignedIndentation(double 
x________________________,
             double y________________________, double 
z________________________) {
         return 0;
     }



More information about the Digitalmars-d mailing list