making all postfix forms close out implicit calls, as in Ruby

This commit is contained in:
Jeremy Ashkenas
2010-01-24 23:56:27 -05:00
parent a5d39efdd2
commit 8d63d269b8
2 changed files with 8 additions and 1 deletions

View File

@@ -46,3 +46,9 @@ Math: {
print Math.Add(5, 5) is 10
print Math.AnonymousAdd(10, 10) is 20
print Math.FastAdd(20, 20) is 40
# Parens are optional on simple function calls.
print 100 > 1 if 1 > 0
print true unless false
print true for i in [1..3]