{"action":"created","issue":{"url":"https://api.github.com/repos/dropbox/djinni/issues/52","labels_url":"https://api.github.com/repos/dropbox/djinni/issues/52/labels{/name}","comments_url":"https://api.github.com/repos/dropbox/djinni/issues/52/comments","events_url":"https://api.github.com/repos/dropbox/djinni/issues/52/events","html_url":"https://github.com/dropbox/djinni/issues/52","id":55879923,"number":52,"title":"Preexisting record types","user":{"login":"skabbes","id":592178,"avatar_url":"https://avatars.githubusercontent.com/u/592178?v=3","gravatar_id":"","url":"https://api.github.com/users/skabbes","html_url":"https://github.com/skabbes","followers_url":"https://api.github.com/users/skabbes/followers","following_url":"https://api.github.com/users/skabbes/following{/other_user}","gists_url":"https://api.github.com/users/skabbes/gists{/gist_id}","starred_url":"https://api.github.com/users/skabbes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/skabbes/subscriptions","organizations_url":"https://api.github.com/users/skabbes/orgs","repos_url":"https://api.github.com/users/skabbes/repos","events_url":"https://api.github.com/users/skabbes/events{/privacy}","received_events_url":"https://api.github.com/users/skabbes/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2015-01-29T10:10:16Z","updated_at":"2015-04-13T20:54:24Z","closed_at":null,"body":"Djinni really only needs to know how to convert record types between objc, java and c++.  What if we extended the include format to take plugins like this?\r\n\r\n@include \"date.json\"\r\n\r\n```coffeescript\r\ndjinni_type: \"custom_date\"\r\nobjc_type: \"NSDate\"\r\njava_type: \"java.util.Date\"\r\ncpp_include_path: \"<chrono>\"\r\ncpp_type: \"std::chrono::system_clock::time_point\"\r\njni_type: \"jobject\"\r\n```\r\n\r\n```cpp\r\n// custom_date.hpp\r\nnamespace djinni {\r\n  jobject custom_date_to_java(time_point);\r\n  NSDate * custom_date_to_objc(time_point);\r\n  time_point custom_date_to_cpp(jobject);\r\n  time_point custom_date_to_cpp(NSDate *);\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/dropbox/djinni/issues/comments/92495144","html_url":"https://github.com/dropbox/djinni/issues/52#issuecomment-92495144","issue_url":"https://api.github.com/repos/dropbox/djinni/issues/52","id":92495144,"user":{"login":"j4cbo","id":537158,"avatar_url":"https://avatars.githubusercontent.com/u/537158?v=3","gravatar_id":"","url":"https://api.github.com/users/j4cbo","html_url":"https://github.com/j4cbo","followers_url":"https://api.github.com/users/j4cbo/followers","following_url":"https://api.github.com/users/j4cbo/following{/other_user}","gists_url":"https://api.github.com/users/j4cbo/gists{/gist_id}","starred_url":"https://api.github.com/users/j4cbo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/j4cbo/subscriptions","organizations_url":"https://api.github.com/users/j4cbo/orgs","repos_url":"https://api.github.com/users/j4cbo/repos","events_url":"https://api.github.com/users/j4cbo/events{/privacy}","received_events_url":"https://api.github.com/users/j4cbo/received_events","type":"User","site_admin":false},"created_at":"2015-04-13T20:54:24Z","updated_at":"2015-04-13T20:54:24Z","body":"I'm fine with moving to C++14 for Djinni - we already build everything in '14 mode here. @pwais would that be a blocker for you or is just an issue of changing compilation flags?"}}