jashkenas/coffee-script — pull request #2417 by gabehollombe (2012-07-04 05:00:16+00:00)
Title: Documentation for switch statements with no control expression

Added the following to the docs in the Switch section:

Switch statements can also be used without a control expression, turning them in to a cleaner alternative to if/else chains.

score = 76
grade = switch
when 90 <= score then 'A'
when 80 <= score < 90 then 'B'
when 70 <= score < 80 then 'C'
when 60 <= score < 70 then 'D'
when score < 60 then 'F'
# grade == 'C'