changing switch/case to switch/when -- it's a better word

This commit is contained in:
Jeremy Ashkenas
2009-12-24 01:33:59 -08:00
parent 849f0e4192
commit 8d76f4bd3f
13 changed files with 85 additions and 38 deletions

View File

@@ -594,7 +594,7 @@ module CoffeeScript
end
end
# If/else statements. Switch/cases get compiled into these. Acts as an
# If/else statements. Switch/whens get compiled into these. Acts as an
# expression by pushing down requested returns to the expression bodies.
# Single-expression IfNodes are compiled into ternary operators if possible,
# because ternaries are first-class returnable assignable expressions.