mirror of
https://github.com/jashkenas/coffeescript.git
synced 2026-02-17 19:11:22 -05:00
16 lines
214 B
CoffeeScript
16 lines
214 B
CoffeeScript
# Everything should be able to be an expression.
|
|
|
|
result: while sunny?
|
|
go_outside()
|
|
|
|
puts(3 + try
|
|
nonexistent.no_way
|
|
catch error
|
|
puts(error)
|
|
3
|
|
)
|
|
|
|
func: (x) ->
|
|
return throw x
|
|
|
|
puts(x * x for x in [1..100]) |