why ; ?

Nick Sabalausky a at a.a
Wed May 7 10:59:51 PDT 2008


"terranium" <spam at here.lot> wrote in message 
news:fvsdet$231s$1 at digitalmars.com...
> Nick Sabalausky Wrote:
>
>> Python's semantically-meaningful indentation was intended to fix the 
>> problem
>> of poorly-indented code by enforcing proper indentation in the language 
>> and
>> compiler. But the problem is, it *doesn't* actually enforce it.
>
> :-/ It's a hard task to keep code poorly formatted in MS Visual Studio, 
> since a code formatter is built into editor.

Exactly. That's the second reason I disagree with Python's rationale for 
their indentation mechanism: Automatic code formatters already solve the 
issue without introducing hidden bugs. And, they're relatively easy to 
implement anyway, or at least compared to a full-blown compiler (especially 
if you write it in D ;-) ). 





More information about the Digitalmars-d mailing list