Comment #19 on issue 1757 by smichr: Tools to check and correct indentation
http://code.google.com/p/sympy/issues/detail?id=1757
regarding comment 14: I felt that way at first (about changing the
indenation
structure) but I have come to prefer the if-return/do-more to the
if-return/else-do-more since when I see indentation and I start to work on
one of the
indented logical blocks, I'm thinking about the different logical states
that exist
at that point. If there is no indentation I more easily just put the
previous state
out of mind.(*) Also, it's easier to keep lines within 80 chars if you
don't keep
creeping to the right with extra indentation that is not actually needed.
(*) a tool I would like to see is one that prints code on the left and on
the right
shows the logical context e.g.
C O D E C O N T E X T
all states
if a:
foo a
else: not a
bar "
return "
baz all states
all states
if a:
foo a
if b:
bar a and b
return
else: not a
baz
baw not (a and b)
Anyone seen such a thing?
--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings
--
You received this message because you are subscribed to the Google Groups
"sympy-issues" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sympy-issues?hl=en.