Why do some attributes start with '@' while others done't?
Ola Fosheim Grøstad via Digitalmars-d
digitalmars-d at puremagic.com
Fri Jan 22 14:11:45 PST 2016
On Friday, 22 January 2016 at 19:10:38 UTC, H. S. Teoh wrote:
> I work with Python code without an IDE, and I manage just fine.
> As long as you're consistent with how you use tabs vs. spaces,
> it's not a problem.
Yes, if you use the same editor and reformat source files you
download before editing them. I have found it to be more
convenient to use an editor that auto detects common mistakes
(not unique for Python though).
> People who complain about Python's "whitespace thing" tend to
> be people who write unreadable code in the first place; that's
> no surprise.
Yes, I don't think it takes more time to get used to that than to
get used to braces, but if you nest longer functions within
functions it is possible to accidentally have a mis-indented
ending. Not a frequent problem, though. Happens with braces too.
More information about the Digitalmars-d
mailing list