mirror of
https://github.com/jashkenas/coffeescript.git
synced 2022-11-09 12:23:24 -05:00
9 lines
No EOL
231 B
CoffeeScript
9 lines
No EOL
231 B
CoffeeScript
switch day
|
|
when "Tuesday" then eat_breakfast()
|
|
when "Wednesday" then go_to_the_park()
|
|
when "Saturday"
|
|
if day is bingo_day
|
|
go_to_bingo()
|
|
go_dancing()
|
|
when "Sunday" then go_to_church()
|
|
else go_to_work() |