{"action":"created","issue":{"url":"https://api.github.com/repos/elixir-lang/elixir/issues/4127","labels_url":"https://api.github.com/repos/elixir-lang/elixir/issues/4127/labels{/name}","comments_url":"https://api.github.com/repos/elixir-lang/elixir/issues/4127/comments","events_url":"https://api.github.com/repos/elixir-lang/elixir/issues/4127/events","html_url":"https://github.com/elixir-lang/elixir/issues/4127","id":124305250,"number":4127,"title":"multiple `when` in guard does not raise error during compilation","user":{"login":"adamkittelson","id":54364,"avatar_url":"https://avatars.githubusercontent.com/u/54364?v=3","gravatar_id":"","url":"https://api.github.com/users/adamkittelson","html_url":"https://github.com/adamkittelson","followers_url":"https://api.github.com/users/adamkittelson/followers","following_url":"https://api.github.com/users/adamkittelson/following{/other_user}","gists_url":"https://api.github.com/users/adamkittelson/gists{/gist_id}","starred_url":"https://api.github.com/users/adamkittelson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adamkittelson/subscriptions","organizations_url":"https://api.github.com/users/adamkittelson/orgs","repos_url":"https://api.github.com/users/adamkittelson/repos","events_url":"https://api.github.com/users/adamkittelson/events{/privacy}","received_events_url":"https://api.github.com/users/adamkittelson/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-12-30T05:16:38Z","updated_at":"2015-12-30T07:39:49Z","closed_at":null,"body":"I just accidentally included `when` twice in a guard and was surprised it didn't raise an error during compilation, should it have? e.g. `def foo(bar, baz) when bar < baz when is_float(bar) and is_float(baz)` (second when should've been `and`)\r\n\r\nI think it dropped the second when and everything thereafter and just became `def foo(bar, baz) when bar < baz` in terms of execution."},"comment":{"url":"https://api.github.com/repos/elixir-lang/elixir/issues/comments/167951701","html_url":"https://github.com/elixir-lang/elixir/issues/4127#issuecomment-167951701","issue_url":"https://api.github.com/repos/elixir-lang/elixir/issues/4127","id":167951701,"user":{"login":"alco","id":207748,"avatar_url":"https://avatars.githubusercontent.com/u/207748?v=3","gravatar_id":"","url":"https://api.github.com/users/alco","html_url":"https://github.com/alco","followers_url":"https://api.github.com/users/alco/followers","following_url":"https://api.github.com/users/alco/following{/other_user}","gists_url":"https://api.github.com/users/alco/gists{/gist_id}","starred_url":"https://api.github.com/users/alco/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alco/subscriptions","organizations_url":"https://api.github.com/users/alco/orgs","repos_url":"https://api.github.com/users/alco/repos","events_url":"https://api.github.com/users/alco/events{/privacy}","received_events_url":"https://api.github.com/users/alco/received_events","type":"User","site_admin":false},"created_at":"2015-12-30T07:39:49Z","updated_at":"2015-12-30T07:39:49Z","body":"Multiple `when`s work like `or`. For example, https://github.com/elixir-lang/elixir/blob/65ec10839941065f77aa21f9639e1ac65dcd0709/lib/elixir/lib/task/supervised.ex#L102"}}