{"action":"created","issue":{"url":"https://api.github.com/repos/stencila/stencila/issues/638","repository_url":"https://api.github.com/repos/stencila/stencila","labels_url":"https://api.github.com/repos/stencila/stencila/issues/638/labels{/name}","comments_url":"https://api.github.com/repos/stencila/stencila/issues/638/comments","events_url":"https://api.github.com/repos/stencila/stencila/issues/638/events","html_url":"https://github.com/stencila/stencila/pull/638","id":314489473,"number":638,"title":"WIP: Function libraries and call semantics","user":{"login":"nokome","id":1152336,"avatar_url":"https://avatars0.githubusercontent.com/u/1152336?v=4","gravatar_id":"","url":"https://api.github.com/users/nokome","html_url":"https://github.com/nokome","followers_url":"https://api.github.com/users/nokome/followers","following_url":"https://api.github.com/users/nokome/following{/other_user}","gists_url":"https://api.github.com/users/nokome/gists{/gist_id}","starred_url":"https://api.github.com/users/nokome/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nokome/subscriptions","organizations_url":"https://api.github.com/users/nokome/orgs","repos_url":"https://api.github.com/users/nokome/repos","events_url":"https://api.github.com/users/nokome/events{/privacy}","received_events_url":"https://api.github.com/users/nokome/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-04-16T03:31:32Z","updated_at":"2018-04-27T18:40:38Z","closed_at":null,"author_association":"OWNER","pull_request":{"url":"https://api.github.com/repos/stencila/stencila/pulls/638","html_url":"https://github.com/stencila/stencila/pull/638","diff_url":"https://github.com/stencila/stencila/pull/638.diff","patch_url":"https://github.com/stencila/stencila/pull/638.patch"},"body":"## Why\r\n\r\nThis PR is needed because of updates to the definition of function libraries in JS and other languages including:\r\n\r\n- changes to how functions are called (allowing for variadic and extensible keyword arguments)\r\n\r\n- allowing functions to be defined dynamically in external execution contexts (e.g. Node.js Python, R) e.g. in `libdh`\r\n\r\n- changes in function definitions away from XML towards native syntax for each language (e.g. JSDoc)\r\n\r\nFor more details see  https://github.com/stencila/libcore/pull/20 and https://github.com/stencila/node/pull/30\r\n\r\nhttps://github.com/stencila/libcore/pull/20 needs to be completed, merged and published before merging this.\r\n\r\n## What\r\n\r\n- mostly refactoring/renaming\r\n\r\n- does add an undocumented 'hack' to allow functions to be defined within a cell - this is really useful for less experienced developers to test that a function and its documentation works. To be decided if this remains undocumented, is documented, or removed (and a perhaps function definition UI added instead). An example or defining a function definition in Javascript using the Node.js context:\r\n\r\n![image](https://user-images.githubusercontent.com/1152336/38788916-f245c754-418a-11e8-92b0-59df9d2d064e.png)\r\n\r\n\r\n\r\n\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/stencila/stencila/issues/comments/385058751","html_url":"https://github.com/stencila/stencila/pull/638#issuecomment-385058751","issue_url":"https://api.github.com/repos/stencila/stencila/issues/638","id":385058751,"user":{"login":"oliver----","id":284099,"avatar_url":"https://avatars1.githubusercontent.com/u/284099?v=4","gravatar_id":"","url":"https://api.github.com/users/oliver----","html_url":"https://github.com/oliver----","followers_url":"https://api.github.com/users/oliver----/followers","following_url":"https://api.github.com/users/oliver----/following{/other_user}","gists_url":"https://api.github.com/users/oliver----/gists{/gist_id}","starred_url":"https://api.github.com/users/oliver----/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oliver----/subscriptions","organizations_url":"https://api.github.com/users/oliver----/orgs","repos_url":"https://api.github.com/users/oliver----/repos","events_url":"https://api.github.com/users/oliver----/events{/privacy}","received_events_url":"https://api.github.com/users/oliver----/received_events","type":"User","site_admin":false},"created_at":"2018-04-27T18:40:38Z","updated_at":"2018-04-27T18:40:38Z","author_association":"MEMBER","body":"@nokome better to rebase onto latest develop.\r\nYour changes are orthogonal though, just better to have it moved to the latest state."}}
{"actor":{"display_login":"oliver----"}}