{"action":"created","issue":{"url":"https://api.github.com/repos/ocaml/ocaml/issues/671","repository_url":"https://api.github.com/repos/ocaml/ocaml","labels_url":"https://api.github.com/repos/ocaml/ocaml/issues/671/labels{/name}","comments_url":"https://api.github.com/repos/ocaml/ocaml/issues/671/comments","events_url":"https://api.github.com/repos/ocaml/ocaml/issues/671/events","html_url":"https://github.com/ocaml/ocaml/pull/671","id":164278595,"number":671,"title":"Add single-line comments","user":{"login":"let-def","id":1048096,"avatar_url":"https://avatars.githubusercontent.com/u/1048096?v=3","gravatar_id":"","url":"https://api.github.com/users/let-def","html_url":"https://github.com/let-def","followers_url":"https://api.github.com/users/let-def/followers","following_url":"https://api.github.com/users/let-def/following{/other_user}","gists_url":"https://api.github.com/users/let-def/gists{/gist_id}","starred_url":"https://api.github.com/users/let-def/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/let-def/subscriptions","organizations_url":"https://api.github.com/users/let-def/orgs","repos_url":"https://api.github.com/users/let-def/repos","events_url":"https://api.github.com/users/let-def/events{/privacy}","received_events_url":"https://api.github.com/users/let-def/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":29,"created_at":"2016-07-07T10:31:20Z","updated_at":"2016-07-11T05:31:54Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/ocaml/ocaml/pulls/671","html_url":"https://github.com/ocaml/ocaml/pull/671","diff_url":"https://github.com/ocaml/ocaml/pull/671.diff","patch_url":"https://github.com/ocaml/ocaml/pull/671.patch"},"body":"I propose to use `(*)` as a token for single line comments.\r\nThis delimiter seems to be a good fit as it already starts a comment but also produce a warning. As such it is unlikely to break existing code (though I didn't check).\r\n\r\nIn other words:\r\n```ocaml\r\ncode\r\n(* lalala *)\r\ncode\r\n```\r\nand:\r\n```ocaml\r\ncode\r\n(*) lalala\r\ncode\r\n```\r\nwould be equivalent.\r\n\r\nThis is a superficial feature but I got positive feedbacks from:\r\n- users of Reason, which features single line comment and would benefit from a direct mapping to OCaml.\r\n- adept of literate programming, who benefit from a lighter way to demarcate code and text lines.\r\n\r\nSo I thought it was worth getting the opinion of the broader community. "},"comment":{"url":"https://api.github.com/repos/ocaml/ocaml/issues/comments/231645575","html_url":"https://github.com/ocaml/ocaml/pull/671#issuecomment-231645575","issue_url":"https://api.github.com/repos/ocaml/ocaml/issues/671","id":231645575,"user":{"login":"rleonid","id":6570317,"avatar_url":"https://avatars.githubusercontent.com/u/6570317?v=3","gravatar_id":"","url":"https://api.github.com/users/rleonid","html_url":"https://github.com/rleonid","followers_url":"https://api.github.com/users/rleonid/followers","following_url":"https://api.github.com/users/rleonid/following{/other_user}","gists_url":"https://api.github.com/users/rleonid/gists{/gist_id}","starred_url":"https://api.github.com/users/rleonid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rleonid/subscriptions","organizations_url":"https://api.github.com/users/rleonid/orgs","repos_url":"https://api.github.com/users/rleonid/repos","events_url":"https://api.github.com/users/rleonid/events{/privacy}","received_events_url":"https://api.github.com/users/rleonid/received_events","type":"User","site_admin":false},"created_at":"2016-07-11T05:31:53Z","updated_at":"2016-07-11T05:31:53Z","body":"This \r\n```\r\nlet a = List.fold_left (*)  1 [2;3;4]\r\nin\r\n```\r\nmight be surprising."}}
{"actor":{"display_login":"rleonid"}}