Basic coding style

so so at so.do
Tue Nov 23 04:30:00 PST 2010


> This takes too much vertical space and should be rewritten to:
>
> void func(string[] strings) {string[] result; foreach(auto s; strings){  
> if (s != "") { writefln("found: %s", s); result ~= s; }}}
>
> Nowadays most programmers have 16:9 displays, so the good coding style  
> is to write as much as possible in one line. And the more misaligned the  
> curies are, the better.

Compile!

Error (line 1) ....
Error (line 1) ....
Error (line 1) ....
Error (line 1) ....
....

-- 
Using Opera's revolutionary email client: http://www.opera.com/mail/


More information about the Digitalmars-d mailing list