{"action":"created","issue":{"url":"https://api.github.com/repos/christopheradams/elixir_style_guide/issues/116","repository_url":"https://api.github.com/repos/christopheradams/elixir_style_guide","labels_url":"https://api.github.com/repos/christopheradams/elixir_style_guide/issues/116/labels{/name}","comments_url":"https://api.github.com/repos/christopheradams/elixir_style_guide/issues/116/comments","events_url":"https://api.github.com/repos/christopheradams/elixir_style_guide/issues/116/events","html_url":"https://github.com/christopheradams/elixir_style_guide/issues/116","id":191322640,"number":116,"title":"Review, revise, or remove run-on defs","user":{"login":"christopheradams","id":60711,"avatar_url":"https://avatars.githubusercontent.com/u/60711?v=3","gravatar_id":"","url":"https://api.github.com/users/christopheradams","html_url":"https://github.com/christopheradams","followers_url":"https://api.github.com/users/christopheradams/followers","following_url":"https://api.github.com/users/christopheradams/following{/other_user}","gists_url":"https://api.github.com/users/christopheradams/gists{/gist_id}","starred_url":"https://api.github.com/users/christopheradams/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/christopheradams/subscriptions","organizations_url":"https://api.github.com/users/christopheradams/orgs","repos_url":"https://api.github.com/users/christopheradams/repos","events_url":"https://api.github.com/users/christopheradams/events{/privacy}","received_events_url":"https://api.github.com/users/christopheradams/received_events","type":"User","site_admin":false},"labels":[{"id":57791186,"url":"https://api.github.com/repos/christopheradams/elixir_style_guide/labels/question","name":"question","color":"cc317c","default":true}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2016-11-23T16:36:50Z","updated_at":"2016-11-24T06:48:08Z","closed_at":"2016-11-24T06:48:08Z","body":"There is a rule under [Source Code Layout](https://github.com/christopheradams/elixir_style_guide#source-code-layout) which reads:\r\n\r\n* ...but run single-line `def`s that match for the same function together.\r\n\r\n  ```elixir\r\n  def some_function(nil), do: {:err, \"No Value\"}\r\n  def some_function([]), do: :ok\r\n  def some_function([first|rest]) do\r\n    some_function(rest)\r\n  end\r\n  ```\r\n\r\nI'm curious how applicable this is or if there are any edge cases or other issues or problems it causes. Should it be amended? Does anyone have counter-examples?\r\n\r\nThanks to @DavidAntaramian for bringing this up on another channel."},"comment":{"url":"https://api.github.com/repos/christopheradams/elixir_style_guide/issues/comments/262702583","html_url":"https://github.com/christopheradams/elixir_style_guide/issues/116#issuecomment-262702583","issue_url":"https://api.github.com/repos/christopheradams/elixir_style_guide/issues/116","id":262702583,"user":{"login":"christopheradams","id":60711,"avatar_url":"https://avatars.githubusercontent.com/u/60711?v=3","gravatar_id":"","url":"https://api.github.com/users/christopheradams","html_url":"https://github.com/christopheradams","followers_url":"https://api.github.com/users/christopheradams/followers","following_url":"https://api.github.com/users/christopheradams/following{/other_user}","gists_url":"https://api.github.com/users/christopheradams/gists{/gist_id}","starred_url":"https://api.github.com/users/christopheradams/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/christopheradams/subscriptions","organizations_url":"https://api.github.com/users/christopheradams/orgs","repos_url":"https://api.github.com/users/christopheradams/repos","events_url":"https://api.github.com/users/christopheradams/events{/privacy}","received_events_url":"https://api.github.com/users/christopheradams/received_events","type":"User","site_admin":false},"created_at":"2016-11-24T06:48:08Z","updated_at":"2016-11-24T06:48:08Z","body":"Good find. I think as presently worded it's satisfactory then."}}
{"actor":{"display_login":"christopheradams"}}