js2coffee
Version:
JavaScript to CoffeeScript compiler
21 lines (20 loc) • 358 B
Plain Text
notes: """
CoffeeScript doesn't support adding `when` clauses that are empty, as you
probably would in JavaScript. When an empty `case` is used just before
`default:`, it is effectively useless and is stripped away.
"""
----
switch (a) {
case one:
b();
break;
case two:
default:
c();
}
----
switch a
when one
b()
else
c()