D vs nim

Paulo Pinto via Digitalmars-d digitalmars-d at puremagic.com
Tue Apr 14 04:49:42 PDT 2015


On Tuesday, 14 April 2015 at 06:31:08 UTC, Jadbox wrote:
>> btw : I think D should get rid off un-bracketed if statement, 
>> program king is not about sparing the number of lines...but 
>> that’s again a matter of taste.
>
> I'm that guy on the other side of the fence. I view unbracked 
> IFs as an essential part of concise code readability. Brackets 
> are the symbolization of a block of logic, meaning multiple 
> steps of logic. Being forced to express "this is a block of 
> code" for just a single statement after an IF seems bloaty and 
> hurts scanning through code. I also feel reducing line numbers 
> is something to strive for as long as no readability is 
> sacrifices.

I think Apple would disagree (CVE-ID CVE-2014-1266).


More information about the Digitalmars-d mailing list