Is anyone working on a D source code formatting tool?
Tobias Pankrath via Digitalmars-d
digitalmars-d at puremagic.com
Sat Jan 10 14:20:17 PST 2015
On Saturday, 10 January 2015 at 22:11:55 UTC, Walter Bright wrote:
> On 1/10/2015 12:17 PM, Walter Bright wrote:
>> Has someone made a dfmt, like http://gofmt.com/ ?
>
> Next question - standalone tool, or built in to dmd (like Ddoc)?
>
> My only concern about it is if dfmt is changed, then we get
> faced with a blizzard of changes in the D github repositories.
Build it into DMD with an option to change files in place or dump
them to stdout. I do think though, this would require a pragma or
a special comment to disable it for parts of code. There will
always be the case where the standard is wrong.
More information about the Digitalmars-d
mailing list