{"action":"created","issue":{"url":"https://api.github.com/repos/ponylang/ponyc/issues/1323","repository_url":"https://api.github.com/repos/ponylang/ponyc","labels_url":"https://api.github.com/repos/ponylang/ponyc/issues/1323/labels{/name}","comments_url":"https://api.github.com/repos/ponylang/ponyc/issues/1323/comments","events_url":"https://api.github.com/repos/ponylang/ponyc/issues/1323/events","html_url":"https://github.com/ponylang/ponyc/pull/1323","id":183198835,"number":1323,"title":"Support for writing out expressions in documentation","user":{"login":"malthe","id":26405,"avatar_url":"https://avatars.githubusercontent.com/u/26405?v=3","gravatar_id":"","url":"https://api.github.com/users/malthe","html_url":"https://github.com/malthe","followers_url":"https://api.github.com/users/malthe/followers","following_url":"https://api.github.com/users/malthe/following{/other_user}","gists_url":"https://api.github.com/users/malthe/gists{/gist_id}","starred_url":"https://api.github.com/users/malthe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/malthe/subscriptions","organizations_url":"https://api.github.com/users/malthe/orgs","repos_url":"https://api.github.com/users/malthe/repos","events_url":"https://api.github.com/users/malthe/events{/privacy}","received_events_url":"https://api.github.com/users/malthe/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2016-10-15T09:11:24Z","updated_at":"2016-10-15T12:15:52Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/ponylang/ponyc/pulls/1323","html_url":"https://github.com/ponylang/ponyc/pull/1323","diff_url":"https://github.com/ponylang/ponyc/pull/1323.diff","patch_url":"https://github.com/ponylang/ponyc/pull/1323.patch"},"body":"This closes #1262."},"comment":{"url":"https://api.github.com/repos/ponylang/ponyc/issues/comments/253980810","html_url":"https://github.com/ponylang/ponyc/pull/1323#issuecomment-253980810","issue_url":"https://api.github.com/repos/ponylang/ponyc/issues/1323","id":253980810,"user":{"login":"malthe","id":26405,"avatar_url":"https://avatars.githubusercontent.com/u/26405?v=3","gravatar_id":"","url":"https://api.github.com/users/malthe","html_url":"https://github.com/malthe","followers_url":"https://api.github.com/users/malthe/followers","following_url":"https://api.github.com/users/malthe/following{/other_user}","gists_url":"https://api.github.com/users/malthe/gists{/gist_id}","starred_url":"https://api.github.com/users/malthe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/malthe/subscriptions","organizations_url":"https://api.github.com/users/malthe/orgs","repos_url":"https://api.github.com/users/malthe/repos","events_url":"https://api.github.com/users/malthe/events{/privacy}","received_events_url":"https://api.github.com/users/malthe/received_events","type":"User","site_admin":false},"created_at":"2016-10-15T12:15:52Z","updated_at":"2016-10-15T12:15:52Z","body":"The output now looks like this:\r\n```pony\r\nnew val create(\r\n  base: (FilePath val | AmbientAuth val),\r\n  path': String val,\r\n  caps': Flags[(FileCreate val | FileChmod val | FileChown val | \r\n    FileLink val | FileLookup val | FileMkdir val | \r\n    FileRead val | FileRemove val | FileRename val | \r\n    FileSeek val | FileStat val | FileSync val | \r\n    FileTime val | FileTruncate val | FileWrite val | \r\n    FileExec val), U32 val] val = recover val FileCaps.all() end)\r\n: FilePath val^ ?\r\n```\r\nThe interesting bit here being the `recover` default value expression.\r\n\r\nI think this pull request can be considered for merging into the main tree with the caveat that the implementation is not complete in the sense that not all expressions are correctly printed."}}
{"actor":{"display_login":"malthe"}}