Is anyone working on a D source code formatting tool?

Walter Bright via Digitalmars-d digitalmars-d at puremagic.com
Sun Jan 11 16:37:41 PST 2015


On 1/11/2015 1:31 PM, Andrei Alexandrescu wrote:
> On 1/11/15 1:15 PM, Walter Bright wrote:
>> On 1/11/2015 11:50 AM, Andrei Alexandrescu wrote:
>>> On 1/11/15 10:48 AM, Walter Bright wrote:
>>>> The main problem is what to do about comments, which don't fit into the
>>>> grammar.
>>> In the first version comments might go through unchanged.
>>
>> Consider:
>>
>>      for /*comment*/ (a;
>>                       b;
>>                       c)
>>
>> Do what with that?
>
> I don't know. Simplest would be to punt for now - such rare embedded comments
> should not be blockers. -- Andrei
>

Normally I would agree, but deleting peoples' comments from their source code is 
not a good plan. It'll make them justifiably angry.


More information about the Digitalmars-d mailing list