{"action":"created","issue":{"url":"https://api.github.com/repos/leafo/moonscript/issues/192","repository_url":"https://api.github.com/repos/leafo/moonscript","labels_url":"https://api.github.com/repos/leafo/moonscript/issues/192/labels{/name}","comments_url":"https://api.github.com/repos/leafo/moonscript/issues/192/comments","events_url":"https://api.github.com/repos/leafo/moonscript/issues/192/events","html_url":"https://github.com/leafo/moonscript/issues/192","id":83955487,"number":192,"title":"Unrestricted spaces/newlines after ( and before ) in function literals?","user":{"login":"van-de-bugger","id":721164,"avatar_url":"https://avatars.githubusercontent.com/u/721164?v=3","gravatar_id":"","url":"https://api.github.com/users/van-de-bugger","html_url":"https://github.com/van-de-bugger","followers_url":"https://api.github.com/users/van-de-bugger/followers","following_url":"https://api.github.com/users/van-de-bugger/following{/other_user}","gists_url":"https://api.github.com/users/van-de-bugger/gists{/gist_id}","starred_url":"https://api.github.com/users/van-de-bugger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/van-de-bugger/subscriptions","organizations_url":"https://api.github.com/users/van-de-bugger/orgs","repos_url":"https://api.github.com/users/van-de-bugger/repos","events_url":"https://api.github.com/users/van-de-bugger/events{/privacy}","received_events_url":"https://api.github.com/users/van-de-bugger/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2015-06-02T10:21:14Z","updated_at":"2016-09-25T21:34:54Z","closed_at":"2016-09-25T21:34:54Z","body":"I am trying to use LDoc on my MoonScript sources. Using `@param` command for documenting function parameters is too talkative:\r\n\r\n    class Matrix\r\n        ...\r\n        --- Get/set a value of matrix element.\r\n        --- @param row Row index.\r\n        --- @param col Column index.\r\n        --- @param value A new value of element, optional.\r\n        elem: ( row, col, value ) => ...\r\n\r\nIt requires `@param` command, all the parameter names are duplicated. LDoc can infer parameter names from code:\r\n\r\n    class Matrix\r\n        ...\r\n        --- Get/set a value of matrix element.\r\n        elem: ( \r\n            row,  -- Row index.\r\n            col,  -- Column index.\r\n            value -- A new value of element, optional.\r\n        ) => ...\r\n\r\nSuch code perfectly parsed by LDoc, but moonscript fails with error\r\n\r\n> Failed to parse:\r\n> [##] >>    elem: (\r\n\r\nHowever, MoonScript CHANGELOG.md says:\r\n\r\n> You can put unrestricted whitespace/newlines immediately after an opening parenthesis, and immediately before closing parenthesis.\r\n\r\nThat was implemented in v0.3.0 (2015-2-28). Examples shown in CHANGELOG illustrate expressions and function calls. My question is: does this claim should cover function literals also?"},"comment":{"url":"https://api.github.com/repos/leafo/moonscript/issues/comments/249448111","html_url":"https://github.com/leafo/moonscript/issues/192#issuecomment-249448111","issue_url":"https://api.github.com/repos/leafo/moonscript/issues/192","id":249448111,"user":{"login":"leafo","id":15198,"avatar_url":"https://avatars.githubusercontent.com/u/15198?v=3","gravatar_id":"","url":"https://api.github.com/users/leafo","html_url":"https://github.com/leafo","followers_url":"https://api.github.com/users/leafo/followers","following_url":"https://api.github.com/users/leafo/following{/other_user}","gists_url":"https://api.github.com/users/leafo/gists{/gist_id}","starred_url":"https://api.github.com/users/leafo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leafo/subscriptions","organizations_url":"https://api.github.com/users/leafo/orgs","repos_url":"https://api.github.com/users/leafo/repos","events_url":"https://api.github.com/users/leafo/events{/privacy}","received_events_url":"https://api.github.com/users/leafo/received_events","type":"User","site_admin":false},"created_at":"2016-09-25T21:34:53Z","updated_at":"2016-09-25T21:34:53Z","body":"Fixed with d8830b17f3dafcdd6b0357d584bd296730ce5ea6"}}
{"actor":{"display_login":"leafo"}}