python vs d

Nick Sabalausky via Digitalmars-d digitalmars-d at puremagic.com
Tue Apr 29 18:46:19 PDT 2014


On 4/29/2014 1:05 PM, Brian Rogoff wrote:
>
> The argument is roughly like this: if we accept that it would be a good
> thing if there was a universal indentation/code formatting standard that
> everyone followed (like gofmt for Go) then punctuation is redundant and
> the remaining question is whether the added punctuation helps or hinders
> readability on the whole. I'm guessing you find the lack of punctuation
> to hinder readability. I find that the opposite is true, and so enjoy
> reading such code more.
>

The problem with the "standardized indentation" argument is that it's 
*impossible* for a language like python to enforce indentation rules. 
All it can do, and indeed all is *does* do, is blindly assume that the 
indentation as presented is correct and adheres to the universal style. 
If something is indented wrong, there is no enforcement, only bugs.

So there's definitely more to it than just whether a person finds 
non-whitespace syntax to help/hinder readability.



More information about the Digitalmars-d mailing list