{"action":"created","issue":{"url":"https://api.github.com/repos/BuckleScript/bucklescript/issues/2090","repository_url":"https://api.github.com/repos/BuckleScript/bucklescript","labels_url":"https://api.github.com/repos/BuckleScript/bucklescript/issues/2090/labels{/name}","comments_url":"https://api.github.com/repos/BuckleScript/bucklescript/issues/2090/comments","events_url":"https://api.github.com/repos/BuckleScript/bucklescript/issues/2090/events","html_url":"https://github.com/BuckleScript/bucklescript/issues/2090","id":262340669,"number":2090,"title":"Extending bs.deriving accessors to records?","user":{"login":"chenglou","id":1909539,"avatar_url":"https://avatars2.githubusercontent.com/u/1909539?v=4","gravatar_id":"","url":"https://api.github.com/users/chenglou","html_url":"https://github.com/chenglou","followers_url":"https://api.github.com/users/chenglou/followers","following_url":"https://api.github.com/users/chenglou/following{/other_user}","gists_url":"https://api.github.com/users/chenglou/gists{/gist_id}","starred_url":"https://api.github.com/users/chenglou/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chenglou/subscriptions","organizations_url":"https://api.github.com/users/chenglou/orgs","repos_url":"https://api.github.com/users/chenglou/repos","events_url":"https://api.github.com/users/chenglou/events{/privacy}","received_events_url":"https://api.github.com/users/chenglou/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2017-10-03T08:15:12Z","updated_at":"2017-10-05T07:00:42Z","closed_at":null,"author_association":"MEMBER","body":"It'd be nice if records can benefit from the same accessors generation, like they do for variants. So:\r\n\r\n```ocaml\r\ntype foo = {temperature: float; b: string} [@@bs.deriving accessors]\r\n\r\nlet ints = List.map temperature foos\r\n```\r\n\r\nOr something similar. Would be nice if setters are generated too. This might not be the best way to do it, but it might make things like [lenses](https://github.com/avsm/ocaml-lens) a bit easier.\r\n\r\nAlternatively, we can drop this altogether and just use some syntax in Reason for deeply nested record updates..."},"comment":{"url":"https://api.github.com/repos/BuckleScript/bucklescript/issues/comments/334376586","html_url":"https://github.com/BuckleScript/bucklescript/issues/2090#issuecomment-334376586","issue_url":"https://api.github.com/repos/BuckleScript/bucklescript/issues/2090","id":334376586,"user":{"login":"bjoyx","id":272372,"avatar_url":"https://avatars3.githubusercontent.com/u/272372?v=4","gravatar_id":"","url":"https://api.github.com/users/bjoyx","html_url":"https://github.com/bjoyx","followers_url":"https://api.github.com/users/bjoyx/followers","following_url":"https://api.github.com/users/bjoyx/following{/other_user}","gists_url":"https://api.github.com/users/bjoyx/gists{/gist_id}","starred_url":"https://api.github.com/users/bjoyx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bjoyx/subscriptions","organizations_url":"https://api.github.com/users/bjoyx/orgs","repos_url":"https://api.github.com/users/bjoyx/repos","events_url":"https://api.github.com/users/bjoyx/events{/privacy}","received_events_url":"https://api.github.com/users/bjoyx/received_events","type":"User","site_admin":false},"created_at":"2017-10-05T07:00:42Z","updated_at":"2017-10-05T07:00:42Z","author_association":"NONE","body":"I'm writing some code to diff records and something like this would be very useful right now:\r\nhttps://github.com/janestreet/ppx_fields_conv"}}
{"actor":{"display_login":"bjoyx"}}