{"action":"created","issue":{"url":"https://api.github.com/repos/dtu-compute/quiz-parser/issues/1","repository_url":"https://api.github.com/repos/dtu-compute/quiz-parser","labels_url":"https://api.github.com/repos/dtu-compute/quiz-parser/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/dtu-compute/quiz-parser/issues/1/comments","events_url":"https://api.github.com/repos/dtu-compute/quiz-parser/issues/1/events","html_url":"https://github.com/dtu-compute/quiz-parser/issues/1","id":148040531,"number":1,"title":"Hint syntax check / new syntax?","user":{"login":"dtu-compute","id":13518486,"avatar_url":"https://avatars.githubusercontent.com/u/13518486?v=3","gravatar_id":"","url":"https://api.github.com/users/dtu-compute","html_url":"https://github.com/dtu-compute","followers_url":"https://api.github.com/users/dtu-compute/followers","following_url":"https://api.github.com/users/dtu-compute/following{/other_user}","gists_url":"https://api.github.com/users/dtu-compute/gists{/gist_id}","starred_url":"https://api.github.com/users/dtu-compute/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dtu-compute/subscriptions","organizations_url":"https://api.github.com/users/dtu-compute/orgs","repos_url":"https://api.github.com/users/dtu-compute/repos","events_url":"https://api.github.com/users/dtu-compute/events{/privacy}","received_events_url":"https://api.github.com/users/dtu-compute/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/dtu-compute/quiz-parser/labels/enhancement","name":"enhancement","color":"84b6eb"},{"url":"https://api.github.com/repos/dtu-compute/quiz-parser/labels/important","name":"important","color":"d93f0b"}],"state":"open","locked":false,"assignee":{"login":"iainbryson","id":1531103,"avatar_url":"https://avatars.githubusercontent.com/u/1531103?v=3","gravatar_id":"","url":"https://api.github.com/users/iainbryson","html_url":"https://github.com/iainbryson","followers_url":"https://api.github.com/users/iainbryson/followers","following_url":"https://api.github.com/users/iainbryson/following{/other_user}","gists_url":"https://api.github.com/users/iainbryson/gists{/gist_id}","starred_url":"https://api.github.com/users/iainbryson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iainbryson/subscriptions","organizations_url":"https://api.github.com/users/iainbryson/orgs","repos_url":"https://api.github.com/users/iainbryson/repos","events_url":"https://api.github.com/users/iainbryson/events{/privacy}","received_events_url":"https://api.github.com/users/iainbryson/received_events","type":"User","site_admin":false},"milestone":null,"comments":1,"created_at":"2016-04-13T12:10:34Z","updated_at":"2016-04-19T05:06:56Z","closed_at":null,"body":"Right now the correct syntax for hints are\r\n```\r\nhint 'first hint' 'second hint' 'etc'\r\n```\r\nWriting \r\n```\r\nhint 'first hint'\r\nhint 'second hint'\r\n```\r\nwill not result in an error (which it should at this point), but only give the last hint.\r\n\r\nWould it be complicated to change the syntax, so the last example will give two hints as expected?\r\n\r\nIf, could\r\n```\r\nbegin:hint\r\nfirst hint\r\nend:hint\r\n\r\nbegin:hint\r\nsecond hint\r\nend:hint\r\n```\r\nthen also be allowed without too much hassle?\r\n\r\nIf, then we should get rid of the current `hint` with arguments syntax.\r\n"},"comment":{"url":"https://api.github.com/repos/dtu-compute/quiz-parser/issues/comments/211730433","html_url":"https://github.com/dtu-compute/quiz-parser/issues/1#issuecomment-211730433","issue_url":"https://api.github.com/repos/dtu-compute/quiz-parser/issues/1","id":211730433,"user":{"login":"iainbryson","id":1531103,"avatar_url":"https://avatars.githubusercontent.com/u/1531103?v=3","gravatar_id":"","url":"https://api.github.com/users/iainbryson","html_url":"https://github.com/iainbryson","followers_url":"https://api.github.com/users/iainbryson/followers","following_url":"https://api.github.com/users/iainbryson/following{/other_user}","gists_url":"https://api.github.com/users/iainbryson/gists{/gist_id}","starred_url":"https://api.github.com/users/iainbryson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iainbryson/subscriptions","organizations_url":"https://api.github.com/users/iainbryson/orgs","repos_url":"https://api.github.com/users/iainbryson/repos","events_url":"https://api.github.com/users/iainbryson/events{/privacy}","received_events_url":"https://api.github.com/users/iainbryson/received_events","type":"User","site_admin":false},"created_at":"2016-04-19T05:06:55Z","updated_at":"2016-04-19T05:06:55Z","body":"This can be done fairly easily, however it would be a breaking change -- all existing quizzes will fail to parse.\r\n\r\nIf that's OK, I'll make the change.  If not, then I can investigate accepting both syntaxes for a while and then invalidate the single-line hint later.\r\n\r\nHowever, if we do that then it would make sense to have a new category of compile status, WARN, for issues which aren't errrors but need fixing.  That will be more expensive.\r\n\r\nSo we can:\r\n(1) break the syntax now and accept only begin/end errors\r\n(2) allow both begin/end and single line errors without warning\r\n(3) allow both begin/end and single line errors and create an infrastructure for warnings.\r\n\r\nWhich would you prefer?  Cost increases as the numbers do ;)\r\n"}}