{"action":"opened","issue":{"url":"https://api.github.com/repos/supercollider/supercollider/issues/4015","repository_url":"https://api.github.com/repos/supercollider/supercollider","labels_url":"https://api.github.com/repos/supercollider/supercollider/issues/4015/labels{/name}","comments_url":"https://api.github.com/repos/supercollider/supercollider/issues/4015/comments","events_url":"https://api.github.com/repos/supercollider/supercollider/issues/4015/events","html_url":"https://github.com/supercollider/supercollider/issues/4015","id":353910267,"node_id":"MDU6SXNzdWUzNTM5MTAyNjc=","number":4015,"title":"Officially support .asInteger over .asInt","user":{"login":"snappizz","id":1211064,"node_id":"MDQ6VXNlcjEyMTEwNjQ=","avatar_url":"https://avatars2.githubusercontent.com/u/1211064?v=4","gravatar_id":"","url":"https://api.github.com/users/snappizz","html_url":"https://github.com/snappizz","followers_url":"https://api.github.com/users/snappizz/followers","following_url":"https://api.github.com/users/snappizz/following{/other_user}","gists_url":"https://api.github.com/users/snappizz/gists{/gist_id}","starred_url":"https://api.github.com/users/snappizz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/snappizz/subscriptions","organizations_url":"https://api.github.com/users/snappizz/orgs","repos_url":"https://api.github.com/users/snappizz/repos","events_url":"https://api.github.com/users/snappizz/events{/privacy}","received_events_url":"https://api.github.com/users/snappizz/received_events","type":"User","site_admin":false},"labels":[{"id":160350216,"node_id":"MDU6TGFiZWwxNjAzNTAyMTY=","url":"https://api.github.com/repos/supercollider/supercollider/labels/comp:%20help","name":"comp: help","color":"CFFF7D","default":false},{"id":4477094,"node_id":"MDU6TGFiZWw0NDc3MDk0","url":"https://api.github.com/repos/supercollider/supercollider/labels/comp:%20sclang","name":"comp: sclang","color":"CFFF7D","default":false},{"id":188654648,"node_id":"MDU6TGFiZWwxODg2NTQ2NDg=","url":"https://api.github.com/repos/supercollider/supercollider/labels/good%20first%20issue","name":"good first issue","color":"8af9ff","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-08-24T20:02:21Z","updated_at":"2018-08-24T20:02:21Z","closed_at":null,"author_association":"MEMBER","body":"per the discussion about #3907:\r\n\r\nthere are two ways to convert objects to integers: `asInteger` and `asInt`. `asInteger` should be the official method, where as `asInt` really shouldn't be used. however, for some reason, the sclang compiler optimizes `asInt` but not `asInteger`.\r\n\r\nhere is our plan:\r\n\r\n- update the docs of `asInteger` and `asInt` to reflect this, and specifically note that `asInt` is a legacy method.\r\n- modify the sclang compiler so it optimizes `asInteger` instead of `asInt`.\r\n- purge all uses of `asInt` in the class library and help files."}}
{"actor":{"display_login":"snappizz"}}