{"action":"created","issue":{"url":"https://api.github.com/repos/daniel3735928559/discovering-cs/issues/1","labels_url":"https://api.github.com/repos/daniel3735928559/discovering-cs/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/daniel3735928559/discovering-cs/issues/1/comments","events_url":"https://api.github.com/repos/daniel3735928559/discovering-cs/issues/1/events","html_url":"https://github.com/daniel3735928559/discovering-cs/pull/1","id":107988186,"number":1,"title":"New Python simulator UI and library","user":{"login":"isaacev","id":3011628,"avatar_url":"https://avatars.githubusercontent.com/u/3011628?v=3","gravatar_id":"","url":"https://api.github.com/users/isaacev","html_url":"https://github.com/isaacev","followers_url":"https://api.github.com/users/isaacev/followers","following_url":"https://api.github.com/users/isaacev/following{/other_user}","gists_url":"https://api.github.com/users/isaacev/gists{/gist_id}","starred_url":"https://api.github.com/users/isaacev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/isaacev/subscriptions","organizations_url":"https://api.github.com/users/isaacev/orgs","repos_url":"https://api.github.com/users/isaacev/repos","events_url":"https://api.github.com/users/isaacev/events{/privacy}","received_events_url":"https://api.github.com/users/isaacev/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-09-23T19:20:41Z","updated_at":"2015-09-25T18:50:05Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/daniel3735928559/discovering-cs/pulls/1","html_url":"https://github.com/daniel3735928559/discovering-cs/pull/1","diff_url":"https://github.com/daniel3735928559/discovering-cs/pull/1.diff","patch_url":"https://github.com/daniel3735928559/discovering-cs/pull/1.patch"},"body":"**Includes:**\r\n+ Pratt parser\r\n+ Interpreter\r\n+ Booleans, numbers, strings, arrays\r\n+ Subscript notation (for arrays and strings)\r\n\r\n**To do:**\r\n- No functions\r\n- Error system needs better messages"},"comment":{"url":"https://api.github.com/repos/daniel3735928559/discovering-cs/issues/comments/143319845","html_url":"https://github.com/daniel3735928559/discovering-cs/pull/1#issuecomment-143319845","issue_url":"https://api.github.com/repos/daniel3735928559/discovering-cs/issues/1","id":143319845,"user":{"login":"daniel3735928559","id":7269091,"avatar_url":"https://avatars.githubusercontent.com/u/7269091?v=3","gravatar_id":"","url":"https://api.github.com/users/daniel3735928559","html_url":"https://github.com/daniel3735928559","followers_url":"https://api.github.com/users/daniel3735928559/followers","following_url":"https://api.github.com/users/daniel3735928559/following{/other_user}","gists_url":"https://api.github.com/users/daniel3735928559/gists{/gist_id}","starred_url":"https://api.github.com/users/daniel3735928559/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/daniel3735928559/subscriptions","organizations_url":"https://api.github.com/users/daniel3735928559/orgs","repos_url":"https://api.github.com/users/daniel3735928559/repos","events_url":"https://api.github.com/users/daniel3735928559/events{/privacy}","received_events_url":"https://api.github.com/users/daniel3735928559/received_events","type":"User","site_admin":false},"created_at":"2015-09-25T18:50:05Z","updated_at":"2015-09-25T18:50:05Z","body":"Officially the only array function that was covered in class was + for concatenation.  I additionally support len(arr) and del arr[i] (though these are not part of the current incarnation of the course).\r\n\r\nThe way I currently handle returns is that you can return nothing, but then using the function call in an expression will create an error.  For example, `2*print(\"hi\")` will cause an error.  On the other hand, I do want to be able to do, for example: \r\n\r\n```\r\ndef f(x):\r\n   print(x)\r\n   print(x+1)\r\n   print(\"Whew; enough maths for today\")\r\n   return\r\nf(4)\r\n```\r\n\r\nWhether omitting the return statement should be allowed is a question, but it probably doesn't matter either way."}}