first draft of optional parentheses, with a couple tests ... more to follow

This commit is contained in:
Jeremy Ashkenas
2010-01-24 22:32:06 -05:00
parent 4b267b401a
commit 70e3a6ef2f
4 changed files with 38 additions and 15 deletions

View File

@@ -7,7 +7,7 @@ catch error
result2: try nonexistent * missing catch error then true
print(result is true and result2 is true)
print result is true and result2 is true
# Assign to conditional.
@@ -16,8 +16,8 @@ get_x: => 10
if x: get_x() then 100
print(x is 10)
print x is 10
x: if get_x() then 100
print(x is 100)
print x is 100