{"action":"created","issue":{"url":"https://api.github.com/repos/davidedc/livecodelab/issues/269","repository_url":"https://api.github.com/repos/davidedc/livecodelab","labels_url":"https://api.github.com/repos/davidedc/livecodelab/issues/269/labels{/name}","comments_url":"https://api.github.com/repos/davidedc/livecodelab/issues/269/comments","events_url":"https://api.github.com/repos/davidedc/livecodelab/issues/269/events","html_url":"https://github.com/davidedc/livecodelab/pull/269","id":165520089,"number":269,"title":"V2langupdate","user":{"login":"rumblesan","id":169088,"avatar_url":"https://avatars.githubusercontent.com/u/169088?v=3","gravatar_id":"","url":"https://api.github.com/users/rumblesan","html_url":"https://github.com/rumblesan","followers_url":"https://api.github.com/users/rumblesan/followers","following_url":"https://api.github.com/users/rumblesan/following{/other_user}","gists_url":"https://api.github.com/users/rumblesan/gists{/gist_id}","starred_url":"https://api.github.com/users/rumblesan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rumblesan/subscriptions","organizations_url":"https://api.github.com/users/rumblesan/orgs","repos_url":"https://api.github.com/users/rumblesan/repos","events_url":"https://api.github.com/users/rumblesan/events{/privacy}","received_events_url":"https://api.github.com/users/rumblesan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":26,"created_at":"2016-07-14T09:40:48Z","updated_at":"2016-09-28T17:49:17Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/davidedc/livecodelab/pulls/269","html_url":"https://github.com/davidedc/livecodelab/pull/269","diff_url":"https://github.com/davidedc/livecodelab/pull/269.diff","patch_url":"https://github.com/davidedc/livecodelab/pull/269.patch"},"body":"So this PR has further improvements to the v2 version of the language.\r\n\r\nThere's still functionality that's missing though, but I don't think it's that much.\r\n\r\nThe two examples I've found so far\r\n\r\n```\r\nfoo = (a, b) => time / (a + b)\r\nscale time % 2, 1 rotate sin foo 10, 2 move box\r\n```\r\nwhich needs more parens with the V2 language\r\n```\r\nfoo = (a, b) => time / (a + b)\r\nscale time % 2, 1 rotate sin(foo(10, 2)) move box\r\n```\r\n\r\nArrays using square brackets also don't work. I don't think we ever actually discussed whether we'd have arrays. The only example that has them is the *DJ Castro homage* demo. It shouldn't be too hard for me to add them in though I think.\r\n\r\nI'd like to get this merged soonish as it's been sitting in a branch for a little while now."},"comment":{"url":"https://api.github.com/repos/davidedc/livecodelab/issues/comments/250243840","html_url":"https://github.com/davidedc/livecodelab/pull/269#issuecomment-250243840","issue_url":"https://api.github.com/repos/davidedc/livecodelab/issues/269","id":250243840,"user":{"login":"rumblesan","id":169088,"avatar_url":"https://avatars.githubusercontent.com/u/169088?v=3","gravatar_id":"","url":"https://api.github.com/users/rumblesan","html_url":"https://github.com/rumblesan","followers_url":"https://api.github.com/users/rumblesan/followers","following_url":"https://api.github.com/users/rumblesan/following{/other_user}","gists_url":"https://api.github.com/users/rumblesan/gists{/gist_id}","starred_url":"https://api.github.com/users/rumblesan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rumblesan/subscriptions","organizations_url":"https://api.github.com/users/rumblesan/orgs","repos_url":"https://api.github.com/users/rumblesan/repos","events_url":"https://api.github.com/users/rumblesan/events{/privacy}","received_events_url":"https://api.github.com/users/rumblesan/received_events","type":"User","site_admin":false},"created_at":"2016-09-28T17:49:17Z","updated_at":"2016-09-28T17:49:17Z","body":"ok, so I've now managed to do away with parentheses when calling a function.\r\n\r\ntotally!\r\n\r\nsort of\r\n\r\n\r\nfoo 1, 2, 3 will work anywhere, regardless of what the function is.\r\n\r\nfoo 1, bar 2, 3 is the same as foo(1, bar(2, 3))\r\n\r\nif you want foo(1, bar(2), 3) then you need to use parens around the bar application to make it a specific expression. e.g. foo 1, (bar 2), 3\r\n\r\nThat seems like an ok trade off to me to be honest, and I think it's about the best we can get. thoughts?"}}
{"actor":{"display_login":"rumblesan"}}