--- Comment #15 from bearophile_h...@eml.cc 2010-11-08 04:00:05 PST ---
(In reply to comment #14)
> Stewart's right in that this change can be effected by changing the grammar.
Good, the grammar may just require braces in this case. This is a good enough
> You can get into all kinds of confusion by perversely indenting the source
> code, this particular one isn't special and so doesn't warrant special
>From what I have seen this particular indentation is a common enough bug, while
other indentations aren't a common enough source of bugs.
But you are right, there are other wrong kinds of indentations that may be
sources of bugs that will enjoy specific warnings (example: unexpected negative
> What I think would be of significant value is to create a D source code
> formatter that will properly indent the code based on the grammar. I'd love
> such a tool, and would use it (for example) as a filter on all D source code
The purpose of a modern IDE is to contain few hundred functionalities like this
one. Using a different tool for those functionalities is not practical nor is
what most modern programmers look for.
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------