{"action":"created","issue":{"url":"https://api.github.com/repos/NetLogo/NetLogo/issues/695","repository_url":"https://api.github.com/repos/NetLogo/NetLogo","labels_url":"https://api.github.com/repos/NetLogo/NetLogo/issues/695/labels{/name}","comments_url":"https://api.github.com/repos/NetLogo/NetLogo/issues/695/comments","events_url":"https://api.github.com/repos/NetLogo/NetLogo/issues/695/events","html_url":"https://github.com/NetLogo/NetLogo/issues/695","id":55508352,"number":695,"title":"String representation of tasks","user":{"login":"arthurhjorth","id":1860843,"avatar_url":"https://avatars.githubusercontent.com/u/1860843?v=3","gravatar_id":"","url":"https://api.github.com/users/arthurhjorth","html_url":"https://github.com/arthurhjorth","followers_url":"https://api.github.com/users/arthurhjorth/followers","following_url":"https://api.github.com/users/arthurhjorth/following{/other_user}","gists_url":"https://api.github.com/users/arthurhjorth/gists{/gist_id}","starred_url":"https://api.github.com/users/arthurhjorth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arthurhjorth/subscriptions","organizations_url":"https://api.github.com/users/arthurhjorth/orgs","repos_url":"https://api.github.com/users/arthurhjorth/repos","events_url":"https://api.github.com/users/arthurhjorth/events{/privacy}","received_events_url":"https://api.github.com/users/arthurhjorth/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/NetLogo/NetLogo/labels/enhancement","name":"enhancement","color":"02e10c"}],"state":"open","locked":false,"assignee":{"login":"mrerrormessage","id":143198,"avatar_url":"https://avatars.githubusercontent.com/u/143198?v=3","gravatar_id":"","url":"https://api.github.com/users/mrerrormessage","html_url":"https://github.com/mrerrormessage","followers_url":"https://api.github.com/users/mrerrormessage/followers","following_url":"https://api.github.com/users/mrerrormessage/following{/other_user}","gists_url":"https://api.github.com/users/mrerrormessage/gists{/gist_id}","starred_url":"https://api.github.com/users/mrerrormessage/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrerrormessage/subscriptions","organizations_url":"https://api.github.com/users/mrerrormessage/orgs","repos_url":"https://api.github.com/users/mrerrormessage/repos","events_url":"https://api.github.com/users/mrerrormessage/events{/privacy}","received_events_url":"https://api.github.com/users/mrerrormessage/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/NetLogo/NetLogo/milestones/21","html_url":"https://github.com/NetLogo/NetLogo/milestones/Hexy%20Honeycomb","labels_url":"https://api.github.com/repos/NetLogo/NetLogo/milestones/21/labels","id":1311174,"number":21,"title":"Hexy Honeycomb","description":"","creator":{"login":"mrerrormessage","id":143198,"avatar_url":"https://avatars.githubusercontent.com/u/143198?v=3","gravatar_id":"","url":"https://api.github.com/users/mrerrormessage","html_url":"https://github.com/mrerrormessage","followers_url":"https://api.github.com/users/mrerrormessage/followers","following_url":"https://api.github.com/users/mrerrormessage/following{/other_user}","gists_url":"https://api.github.com/users/mrerrormessage/gists{/gist_id}","starred_url":"https://api.github.com/users/mrerrormessage/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrerrormessage/subscriptions","organizations_url":"https://api.github.com/users/mrerrormessage/orgs","repos_url":"https://api.github.com/users/mrerrormessage/repos","events_url":"https://api.github.com/users/mrerrormessage/events{/privacy}","received_events_url":"https://api.github.com/users/mrerrormessage/received_events","type":"User","site_admin":false},"open_issues":30,"closed_issues":16,"state":"open","created_at":"2015-09-17T18:05:24Z","updated_at":"2016-02-29T15:01:33Z","due_on":null,"closed_at":null},"comments":6,"created_at":"2015-01-26T17:04:49Z","updated_at":"2016-02-29T15:07:59Z","closed_at":null,"body":"IT would be great to have a way of returning a string representation of a task. I think ideally it would be the default reporter value for a task. Currently if I write: `let atask task [ask turtles [fd 1]] show atask`, the `show` gives me:\r\n\r\n    observer> let atask task [ask turtles [fd 1]] show atask\r\n    observer: (command task from: Command Center)\r\n\r\nRather, I'd want it to return something like: \r\n\r\n    observer> let atask task [ask turtles [fd 1]] show atask\r\n    observer: (command task from: Command Center: [ask turtles [fd 1]])\r\n\r\nI guess alternatively we could introduce a new reporter, e.g. `show-task`, that takes a task as an argument and reports only the actual text. That [i]might[/i] be useful for models where tasks are generated and people want to dynamically check (or change) tasks."},"comment":{"url":"https://api.github.com/repos/NetLogo/NetLogo/issues/comments/190250799","html_url":"https://github.com/NetLogo/NetLogo/issues/695#issuecomment-190250799","issue_url":"https://api.github.com/repos/NetLogo/NetLogo/issues/695","id":190250799,"user":{"login":"arthurhjorth","id":1860843,"avatar_url":"https://avatars.githubusercontent.com/u/1860843?v=3","gravatar_id":"","url":"https://api.github.com/users/arthurhjorth","html_url":"https://github.com/arthurhjorth","followers_url":"https://api.github.com/users/arthurhjorth/followers","following_url":"https://api.github.com/users/arthurhjorth/following{/other_user}","gists_url":"https://api.github.com/users/arthurhjorth/gists{/gist_id}","starred_url":"https://api.github.com/users/arthurhjorth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arthurhjorth/subscriptions","organizations_url":"https://api.github.com/users/arthurhjorth/orgs","repos_url":"https://api.github.com/users/arthurhjorth/repos","events_url":"https://api.github.com/users/arthurhjorth/events{/privacy}","received_events_url":"https://api.github.com/users/arthurhjorth/received_events","type":"User","site_admin":false},"created_at":"2016-02-29T15:07:59Z","updated_at":"2016-02-29T15:07:59Z","body":"Oh, I think I understand now: because we can use CodeBlock instead of tasks to construct code?\r\n\r\nThe primary benefit and reason we chose to use tasks in XWGUI was simply because of its fast execution. CodeBlock doesn't address that. I guess we could then tie a CodeBlock to a task inside NetLogo behind the GUI. That would work as a workaround, but I do think that the `task` type should allow for inspection-like actions, like OPTL context, or string representation."}}