[Issue 4008] New: dmd source should contain no tabs and use .cpp file extensions
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Mar 26 03:22:50 PDT 2010
http://d.puremagic.com/issues/show_bug.cgi?id=4008
Summary: dmd source should contain no tabs and use .cpp file
extensions
Product: D
Version: future
Platform: Other
OS/Version: All
Status: NEW
Severity: enhancement
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: nfxjfg at gmail.com
--- Comment #0 from nfxjfg at gmail.com 2010-03-26 03:22:47 PDT ---
Rationale:
Right now, the dmd source code contains mixed tabs and spaces for indentation.
You can have endless discussions about whether using tabs for indentation is
ok, but I'm sure almost everybody will agree that MIXING tabs and spaces is a
really, really, really bad idea and causes trouble for most editors, making
writing or applying patches unnecessarily hard. I suggest Walter to
consistently use either tabs or spaces for indentation (spaces would cause the
least trouble for others).
Additionally, the dmd source is full of .c whiles, which, despite their file
extensions, are not C, but C++ sources. This is confusing and leads to trouble
with various tools trying to autodetect the language from the filename. I
suggest using more conventional file extensions. I believe .cpp is most widely
accepted for C++ sources.
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list