On Wednesday, 4 March 2015 at 15:26:51 UTC, Russel Winder wrote:
I try to use DCD when working with Emacs for D code, but I keep
forgetting to start the server :-( I would certainly be happy to commit to using dfmt just as I use gofmt in Emacs. As long as the variation from my preferred style is not to much I can live with a "One True
Style" (*).


That means that the Emacs plugin needs to start it automatically.

There ought to be for the compiler/formatter toolchain otherwise there will be problems. And if there is a D parser as library and it works why
would anyone want another parser?

Implementing a separate parser based on the language spec has helped to find problems with the language spec. Having "One True Implementation" can lead to problems as well.

https://issues.dlang.org/show_bug.cgi?id=10233

(*) The exception is of course Phobos style which I find so annoying I
can't read code formatted that way.

By default dfmt tries to output Phobos style code. There is an option to use a different brace style and another one to use tabs.

Reply via email to