{"action":"created","issue":{"url":"https://api.github.com/repos/morepath/morepath/issues/448","repository_url":"https://api.github.com/repos/morepath/morepath","labels_url":"https://api.github.com/repos/morepath/morepath/issues/448/labels{/name}","comments_url":"https://api.github.com/repos/morepath/morepath/issues/448/comments","events_url":"https://api.github.com/repos/morepath/morepath/issues/448/events","html_url":"https://github.com/morepath/morepath/issues/448","id":156943648,"number":448,"title":"should generic functions be static methods of the app class?","user":{"login":"faassen","id":327472,"avatar_url":"https://avatars.githubusercontent.com/u/327472?v=3","gravatar_id":"","url":"https://api.github.com/users/faassen","html_url":"https://github.com/faassen","followers_url":"https://api.github.com/users/faassen/followers","following_url":"https://api.github.com/users/faassen/following{/other_user}","gists_url":"https://api.github.com/users/faassen/gists{/gist_id}","starred_url":"https://api.github.com/users/faassen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/faassen/subscriptions","organizations_url":"https://api.github.com/users/faassen/orgs","repos_url":"https://api.github.com/users/faassen/repos","events_url":"https://api.github.com/users/faassen/events{/privacy}","received_events_url":"https://api.github.com/users/faassen/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/morepath/morepath/labels/enhancement","name":"enhancement","color":"84b6eb"},{"url":"https://api.github.com/repos/morepath/morepath/labels/idea","name":"idea","color":"f7c6c7"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":30,"created_at":"2016-05-26T09:38:52Z","updated_at":"2016-08-01T12:25:04Z","closed_at":null,"body":"This is a big rather philosophical issues. Are generic functions in Morepath really actually special static methods on the app class? This because the implicit parameter for a generic function is always the app's lookup anyway. If we installed generic functions as static methods on the app class this implicitness would go away.\r\n\r\nTo make this smooth we probably would need to adjust Reg to have an awareness of an actual app class.\r\n\r\n@taschini what do you think?"},"comment":{"url":"https://api.github.com/repos/morepath/morepath/issues/comments/236566465","html_url":"https://github.com/morepath/morepath/issues/448#issuecomment-236566465","issue_url":"https://api.github.com/repos/morepath/morepath/issues/448","id":236566465,"user":{"login":"faassen","id":327472,"avatar_url":"https://avatars.githubusercontent.com/u/327472?v=3","gravatar_id":"","url":"https://api.github.com/users/faassen","html_url":"https://github.com/faassen","followers_url":"https://api.github.com/users/faassen/followers","following_url":"https://api.github.com/users/faassen/following{/other_user}","gists_url":"https://api.github.com/users/faassen/gists{/gist_id}","starred_url":"https://api.github.com/users/faassen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/faassen/subscriptions","organizations_url":"https://api.github.com/users/faassen/orgs","repos_url":"https://api.github.com/users/faassen/repos","events_url":"https://api.github.com/users/faassen/events{/privacy}","received_events_url":"https://api.github.com/users/faassen/received_events","type":"User","site_admin":false},"created_at":"2016-08-01T12:25:04Z","updated_at":"2016-08-01T12:25:04Z","body":"I'd like the directives to be as consistent as possible. I think we can get close with the \"app as first argument\" rule, though there are a few exceptions. I've done some analysis of the situation to come up with a plan for the various directives.\r\n\r\n[analysis.txt](https://github.com/morepath/morepath/files/393695/analysis.txt)\r\n"}}
{"actor":{"display_login":"faassen"}}