mirror of
https://github.com/jashkenas/coffeescript.git
synced 2026-04-11 03:00:13 -04:00
first draft of optional parentheses, with a couple tests ... more to follow
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user