Learning With D

Daniel Gibson metalcaedes at gmail.com
Mon May 23 16:14:12 PDT 2011


Am 23.05.2011 22:51, schrieb Adam D. Ruppe:
> bearophile wrote:
>> For them spaces are nothing, they don't even see them, so for them
>> braces are probably better
> 
> This is the biggest thing that trips me up with Python. Something
> indenting inward is pretty easy to see, but going outward is often
> skipped by my eyes.
> 
> def foo():
>     # i see this change
> 
> # but here I don't register the change and think I'm still in foo()
> 
> 
> I wonder if part of the confusion is from indented paragraphs
> in normal English. The most difficult thing to see is two or more
> indents changing at once though... counting groups of spaces is
> weird.

Scintilla based editors (like SciTE and Geany) have indentation guides,
see
http://www.joeflash.ca/blog/2009/03/indentation-guides-in-flex-builder.html
for a screenshot (that's not my page, I found this via google).
That should help.

Cheers,
- Daniel


More information about the Digitalmars-d-announce mailing list