{"action":"created","issue":{"url":"https://api.github.com/repos/positron-lang/spec/issues/16","labels_url":"https://api.github.com/repos/positron-lang/spec/issues/16/labels{/name}","comments_url":"https://api.github.com/repos/positron-lang/spec/issues/16/comments","events_url":"https://api.github.com/repos/positron-lang/spec/issues/16/events","html_url":"https://github.com/positron-lang/spec/issues/16","id":70468577,"number":16,"title":"Pattern Matching","user":{"login":"igorbonadio","id":28595,"avatar_url":"https://avatars.githubusercontent.com/u/28595?v=3","gravatar_id":"","url":"https://api.github.com/users/igorbonadio","html_url":"https://github.com/igorbonadio","followers_url":"https://api.github.com/users/igorbonadio/followers","following_url":"https://api.github.com/users/igorbonadio/following{/other_user}","gists_url":"https://api.github.com/users/igorbonadio/gists{/gist_id}","starred_url":"https://api.github.com/users/igorbonadio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/igorbonadio/subscriptions","organizations_url":"https://api.github.com/users/igorbonadio/orgs","repos_url":"https://api.github.com/users/igorbonadio/repos","events_url":"https://api.github.com/users/igorbonadio/events{/privacy}","received_events_url":"https://api.github.com/users/igorbonadio/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/positron-lang/spec/labels/feature","name":"feature","color":"006b75"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-04-23T17:33:08Z","updated_at":"2015-05-22T15:30:34Z","closed_at":null,"body":"Lets talk about pattern matching"},"comment":{"url":"https://api.github.com/repos/positron-lang/spec/issues/comments/104691316","html_url":"https://github.com/positron-lang/spec/issues/16#issuecomment-104691316","issue_url":"https://api.github.com/repos/positron-lang/spec/issues/16","id":104691316,"user":{"login":"vinivendra","id":1630012,"avatar_url":"https://avatars.githubusercontent.com/u/1630012?v=3","gravatar_id":"","url":"https://api.github.com/users/vinivendra","html_url":"https://github.com/vinivendra","followers_url":"https://api.github.com/users/vinivendra/followers","following_url":"https://api.github.com/users/vinivendra/following{/other_user}","gists_url":"https://api.github.com/users/vinivendra/gists{/gist_id}","starred_url":"https://api.github.com/users/vinivendra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vinivendra/subscriptions","organizations_url":"https://api.github.com/users/vinivendra/orgs","repos_url":"https://api.github.com/users/vinivendra/repos","events_url":"https://api.github.com/users/vinivendra/events{/privacy}","received_events_url":"https://api.github.com/users/vinivendra/received_events","type":"User","site_admin":false},"created_at":"2015-05-22T15:30:34Z","updated_at":"2015-05-22T15:30:34Z","body":"Ok, I like how this looks. Let me see if I got this straight.\r\n\r\n - In a **test for equality**, such as a `match`, we test each element for equality. The `match` succeeds only if all individual element's tests succeed.\r\n - In an **assignment**, each element may require an assignment or a test for equality. For instance, if we do\r\n````scala\r\nlet (\"foo\", a) = (b, c)\r\n````\r\nwe first check the first elements. Since it's a constant and a variable, we know we have to test for equality: `\"foo\" == b`. If this test succeeds, we check the second element. Since it's two variables, we can do an assignment: `a = c`. If any of the elements are `_`, that assignment (or that test) is skipped. If any of the tests fail, we ignore that line of code and no assignments are done.\r\n\r\nIs this right?"}}