{"action":"created","issue":{"url":"https://api.github.com/repos/yuki-kimoto/SPVM/issues/17","repository_url":"https://api.github.com/repos/yuki-kimoto/SPVM","labels_url":"https://api.github.com/repos/yuki-kimoto/SPVM/issues/17/labels{/name}","comments_url":"https://api.github.com/repos/yuki-kimoto/SPVM/issues/17/comments","events_url":"https://api.github.com/repos/yuki-kimoto/SPVM/issues/17/events","html_url":"https://github.com/yuki-kimoto/SPVM/pull/17","id":367662428,"node_id":"MDExOlB1bGxSZXF1ZXN0MjIxMDIwOTA2","number":17,"title":"Implement SPVM::List","user":{"login":"motxx","id":5776910,"node_id":"MDQ6VXNlcjU3NzY5MTA=","avatar_url":"https://avatars0.githubusercontent.com/u/5776910?v=4","gravatar_id":"","url":"https://api.github.com/users/motxx","html_url":"https://github.com/motxx","followers_url":"https://api.github.com/users/motxx/followers","following_url":"https://api.github.com/users/motxx/following{/other_user}","gists_url":"https://api.github.com/users/motxx/gists{/gist_id}","starred_url":"https://api.github.com/users/motxx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/motxx/subscriptions","organizations_url":"https://api.github.com/users/motxx/orgs","repos_url":"https://api.github.com/users/motxx/repos","events_url":"https://api.github.com/users/motxx/events{/privacy}","received_events_url":"https://api.github.com/users/motxx/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2018-10-08T07:14:13Z","updated_at":"2018-10-09T22:39:41Z","closed_at":null,"author_association":"COLLABORATOR","pull_request":{"url":"https://api.github.com/repos/yuki-kimoto/SPVM/pulls/17","html_url":"https://github.com/yuki-kimoto/SPVM/pull/17","diff_url":"https://github.com/yuki-kimoto/SPVM/pull/17.diff","patch_url":"https://github.com/yuki-kimoto/SPVM/pull/17.patch"},"body":"Implement SPVM::List: https://github.com/yuki-kimoto/SPVM/issues/16\r\n\r\n## Interface\r\n```perl\r\nsub new : SPVM::List ();\r\nsub new_with_capacity : SPVM::List ($capacity : int);\r\nsub new_with_array : SPVM::List ($objects : object[]);\r\nsub length : int ($self : self);\r\nsub push : void ($self : self, $value : object);\r\nsub pop : object ($self : self);\r\nsub unshift : void ($self : self, $value : object);\r\nsub shift : object ($self : self);\r\nsub set : void ($self : self, $index : int, $value : object);\r\nsub get : object ($self : self, $index : int);\r\nsub splice : SPVM::List ($self : self, $cut_offset : int, $cut_length : int);\r\nsub splice_with_list : SPVM::List ($self : self, $cut_offset : int, $cut_length : int, $insert_list : SPVM::List);\r\n```\r\n## Note\r\n- Specification `splice[_with_list]` follows https://perldoc.perl.org/functions/splice.html as much as possible.\r\n- autovivification is not supported.\r\n- ~Throwing an exception in `SPVM::List` makes memory leak. If this specification is not good, please tell me what is best 🙇~ => It's default behavior. croak creates 2 objects, a header and a body."},"comment":{"url":"https://api.github.com/repos/yuki-kimoto/SPVM/issues/comments/428377487","html_url":"https://github.com/yuki-kimoto/SPVM/pull/17#issuecomment-428377487","issue_url":"https://api.github.com/repos/yuki-kimoto/SPVM/issues/17","id":428377487,"node_id":"MDEyOklzc3VlQ29tbWVudDQyODM3NzQ4Nw==","user":{"login":"yuki-kimoto","id":81858,"node_id":"MDQ6VXNlcjgxODU4","avatar_url":"https://avatars1.githubusercontent.com/u/81858?v=4","gravatar_id":"","url":"https://api.github.com/users/yuki-kimoto","html_url":"https://github.com/yuki-kimoto","followers_url":"https://api.github.com/users/yuki-kimoto/followers","following_url":"https://api.github.com/users/yuki-kimoto/following{/other_user}","gists_url":"https://api.github.com/users/yuki-kimoto/gists{/gist_id}","starred_url":"https://api.github.com/users/yuki-kimoto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yuki-kimoto/subscriptions","organizations_url":"https://api.github.com/users/yuki-kimoto/orgs","repos_url":"https://api.github.com/users/yuki-kimoto/repos","events_url":"https://api.github.com/users/yuki-kimoto/events{/privacy}","received_events_url":"https://api.github.com/users/yuki-kimoto/received_events","type":"User","site_admin":false},"created_at":"2018-10-09T22:39:41Z","updated_at":"2018-10-09T22:39:41Z","author_association":"OWNER","body":"I' reading t/default/lib-SPVM-List.t"}}
{"actor":{"display_login":"yuki-kimoto"}}