Skip to content

Instantly share code, notes, and snippets.

@oieioi
Last active August 29, 2015 14:02
Show Gist options
  • Save oieioi/31364ca169005d018734 to your computer and use it in GitHub Desktop.
Save oieioi/31364ca169005d018734 to your computer and use it in GitHub Desktop.
# try-catch は値をかえす
res = try
sippaisisou()
catch e
{}
# 関数に複数の関数を渡す
asyncHoge(
->
alert 0
-> alert 1
-> alert 2
)
# while(true)
loop
alert 0
# 引数をそのまま渡す
# fun.apply null, arguments
f = (arg1, arg2, arg3, arg4)->
fun arguments...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment