{"action":"created","issue":{"url":"https://api.github.com/repos/gkz/LiveScript/issues/803","labels_url":"https://api.github.com/repos/gkz/LiveScript/issues/803/labels{/name}","comments_url":"https://api.github.com/repos/gkz/LiveScript/issues/803/comments","events_url":"https://api.github.com/repos/gkz/LiveScript/issues/803/events","html_url":"https://github.com/gkz/LiveScript/pull/803","id":124392957,"number":803,"title":"Start working on type ascriptions","user":{"login":"vendethiel","id":199499,"avatar_url":"https://avatars.githubusercontent.com/u/199499?v=3","gravatar_id":"","url":"https://api.github.com/users/vendethiel","html_url":"https://github.com/vendethiel","followers_url":"https://api.github.com/users/vendethiel/followers","following_url":"https://api.github.com/users/vendethiel/following{/other_user}","gists_url":"https://api.github.com/users/vendethiel/gists{/gist_id}","starred_url":"https://api.github.com/users/vendethiel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vendethiel/subscriptions","organizations_url":"https://api.github.com/users/vendethiel/orgs","repos_url":"https://api.github.com/users/vendethiel/repos","events_url":"https://api.github.com/users/vendethiel/events{/privacy}","received_events_url":"https://api.github.com/users/vendethiel/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":24,"created_at":"2015-12-30T19:56:40Z","updated_at":"2016-01-17T12:16:31Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/gkz/LiveScript/pulls/803","html_url":"https://github.com/gkz/LiveScript/pull/803","diff_url":"https://github.com/gkz/LiveScript/pull/803.diff","patch_url":"https://github.com/gkz/LiveScript/pull/803.patch"},"body":"I would like everyone's input on this: the syntax, what we're compiling to, etc.\r\nThe idea is to compile down to TS or flow-compatible stuff"},"comment":{"url":"https://api.github.com/repos/gkz/LiveScript/issues/comments/172318548","html_url":"https://github.com/gkz/LiveScript/pull/803#issuecomment-172318548","issue_url":"https://api.github.com/repos/gkz/LiveScript/issues/803","id":172318548,"user":{"login":"unclechu","id":799353,"avatar_url":"https://avatars.githubusercontent.com/u/799353?v=3","gravatar_id":"","url":"https://api.github.com/users/unclechu","html_url":"https://github.com/unclechu","followers_url":"https://api.github.com/users/unclechu/followers","following_url":"https://api.github.com/users/unclechu/following{/other_user}","gists_url":"https://api.github.com/users/unclechu/gists{/gist_id}","starred_url":"https://api.github.com/users/unclechu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/unclechu/subscriptions","organizations_url":"https://api.github.com/users/unclechu/orgs","repos_url":"https://api.github.com/users/unclechu/repos","events_url":"https://api.github.com/users/unclechu/events{/privacy}","received_events_url":"https://api.github.com/users/unclechu/received_events","type":"User","site_admin":false},"created_at":"2016-01-17T12:16:31Z","updated_at":"2016-01-17T12:16:31Z","body":"@AriaMinaei may be as alternative, but if you have a lot of arguments, inline declaration will be easier to read.\r\n```livescript\r\nadd :: (\r\n  number\r\n  number\r\n  string\r\n  boolean\r\n  Object\r\n  Date\r\n  string[]\r\n) -> number\r\nadd = (\r\n  foo\r\n  bar\r\n  test\r\n  test2\r\n  abc\r\n  def\r\n  zyx\r\n) ->\r\n  a + b\r\n```\r\nIn this case I can't say immediately what type does have `test2`.\r\nAnd in case with inline type declaration we keep it short and readable:\r\n```livescript\r\nadd = (\r\n  :foo   number\r\n  :bar   number\r\n  :test  string\r\n  :test2 boolean\r\n  :abc   Object\r\n  :def   Date\r\n  :zyx   string[]\r\n): number ->\r\n  a + b"}}