Adding D support to Clang format
max haughton
maxhaton at gmail.com
Sat Apr 29 16:45:15 UTC 2023
On Saturday, 29 April 2023 at 14:32:02 UTC, Guillaume Piolat
wrote:
> On Saturday, 29 April 2023 at 10:46:45 UTC, Johan wrote:
>> I'm enthusiastic, but after some more thinking I think it's
>> wise to talk with the sdfmt team and discuss which way to go:
>> better to have everyone work on one project, rather than two.
>> I'm very interested in working on a good formatter, but not
>> two ;-)
>
> I liked sdfmt when I tried it.
> sdfmt doesn't support spaces as indentation (or even specifying
> the indent level), so it seems to contradict the "D style". So
> we have a tab vs space debate on our hands :) and even K&R vs
> Allman.
You can tell sdfmt to use spaces in a config file.
D style is bad IMO (or at least has some warts) - sdfmt output is
so much more efficient than (say) dfmt by default
More information about the Digitalmars-d
mailing list