{"action":"created","issue":{"url":"https://api.github.com/repos/kaneplusplus/bigmemory/issues/71","repository_url":"https://api.github.com/repos/kaneplusplus/bigmemory","labels_url":"https://api.github.com/repos/kaneplusplus/bigmemory/issues/71/labels{/name}","comments_url":"https://api.github.com/repos/kaneplusplus/bigmemory/issues/71/comments","events_url":"https://api.github.com/repos/kaneplusplus/bigmemory/issues/71/events","html_url":"https://github.com/kaneplusplus/bigmemory/issues/71","id":249324645,"number":71,"title":"Using macros instead of extensive dispatch functions.","user":{"login":"privefl","id":11161036,"avatar_url":"https://avatars3.githubusercontent.com/u/11161036?v=4","gravatar_id":"","url":"https://api.github.com/users/privefl","html_url":"https://github.com/privefl","followers_url":"https://api.github.com/users/privefl/followers","following_url":"https://api.github.com/users/privefl/following{/other_user}","gists_url":"https://api.github.com/users/privefl/gists{/gist_id}","starred_url":"https://api.github.com/users/privefl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/privefl/subscriptions","organizations_url":"https://api.github.com/users/privefl/orgs","repos_url":"https://api.github.com/users/privefl/repos","events_url":"https://api.github.com/users/privefl/events{/privacy}","received_events_url":"https://api.github.com/users/privefl/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2017-08-10T12:06:47Z","updated_at":"2017-08-10T14:02:33Z","closed_at":null,"body":"I've just come across the [Cleaner Generic Functions with RCPP_RETURN Macros](http://gallery.rcpp.org/articles/rcpp-return-macros/) which are implemented [there](https://github.com/RcppCore/Rcpp/blob/master/inst/include/Rcpp/macros/dispatch.h#L33-L78). \r\n\r\nI think, with some tweaking, we could use macros for `MatrixAccessor`s and types `raw, char, short, int, float, double, complex` in order to factorize code by using macros instead of extensive dispatch functions.\r\n\r\nYet, I don't know anything about C++ macros.\r\n\r\n@eddelbuettel @nathan-russell Could this be feasible? "},"comment":{"url":"https://api.github.com/repos/kaneplusplus/bigmemory/issues/comments/321560165","html_url":"https://github.com/kaneplusplus/bigmemory/issues/71#issuecomment-321560165","issue_url":"https://api.github.com/repos/kaneplusplus/bigmemory/issues/71","id":321560165,"user":{"login":"eddelbuettel","id":673121,"avatar_url":"https://avatars1.githubusercontent.com/u/673121?v=4","gravatar_id":"","url":"https://api.github.com/users/eddelbuettel","html_url":"https://github.com/eddelbuettel","followers_url":"https://api.github.com/users/eddelbuettel/followers","following_url":"https://api.github.com/users/eddelbuettel/following{/other_user}","gists_url":"https://api.github.com/users/eddelbuettel/gists{/gist_id}","starred_url":"https://api.github.com/users/eddelbuettel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eddelbuettel/subscriptions","organizations_url":"https://api.github.com/users/eddelbuettel/orgs","repos_url":"https://api.github.com/users/eddelbuettel/repos","events_url":"https://api.github.com/users/eddelbuettel/events{/privacy}","received_events_url":"https://api.github.com/users/eddelbuettel/received_events","type":"User","site_admin":false},"created_at":"2017-08-10T14:02:33Z","updated_at":"2017-08-10T14:02:33Z","body":"(That URL lacks a second L before 2478)\r\n\r\nSeems fine to me. <shrugs> What nothing wrong occasional refactoring."}}
{"actor":{"display_login":"eddelbuettel"}}