Introducing the notion of 'indebt' to mirror 'outdebt', but for suppressed indentation with trailing operators etc. Issue #639.

This commit is contained in:
Jeremy Ashkenas
2010-09-08 22:46:13 -04:00
parent 18cbddff6a
commit 9bd3cca7c4
3 changed files with 23 additions and 6 deletions

View File

@@ -118,3 +118,13 @@ isTrue = (x) -> x is true
if isTrue yes then i += 1
ok i is 2
# If/else with a suppressed indentation via assignment.
result =
if false then 10
else if no then 20
else if 0 then 30
else if NaN then 40
else 50
ok result is 50