A look at the D programming language by Ferdynand Górski
Regan Heath
regan at netmail.co.nz
Wed Jan 16 02:59:46 PST 2013
On Tue, 15 Jan 2013 20:06:05 -0000, Walter Bright
<newshound2 at digitalmars.com> wrote:
> On 1/15/2013 4:09 AM, bearophile wrote:
>> One common indentation-related bug is caused by relying on the
>> indentation to
>> understand code, while the curly brace language compiler ignores what
>> you were
>> seeing and only sees the braces. I have seen many cases of delayed code
>> understanding caused by that. Making the syntax more DRY (this means
>> stating the
>> logical indentation using only one communication channel) helps avoid
>> those
>> mistakes (and reduces the visual noise, further helping code
>> readability).
>
> This is the job of a syntax aware editor (and other source code
> formatting tools), not the language. In my not-so-humble opinion.
>
> BTW, I'd like to see a source code formatter for D. Anyone want to step
> up?
In an ideal world the source code would be stored in file on disk in some
"standard" format, and displayed in each programmers editor in their own
preferred format. It could end all arguments about code formatting, for
good.
R
--
Using Opera's revolutionary email client: http://www.opera.com/mail/
More information about the Digitalmars-d-announce
mailing list