{"action":"created","issue":{"url":"https://api.github.com/repos/manastech/crystal/issues/1135","labels_url":"https://api.github.com/repos/manastech/crystal/issues/1135/labels{/name}","comments_url":"https://api.github.com/repos/manastech/crystal/issues/1135/comments","events_url":"https://api.github.com/repos/manastech/crystal/issues/1135/events","html_url":"https://github.com/manastech/crystal/issues/1135","id":99902104,"number":1135,"title":"Multiple assignments in single expression","user":{"login":"sergey-kucher","id":3724768,"avatar_url":"https://avatars.githubusercontent.com/u/3724768?v=3","gravatar_id":"","url":"https://api.github.com/users/sergey-kucher","html_url":"https://github.com/sergey-kucher","followers_url":"https://api.github.com/users/sergey-kucher/followers","following_url":"https://api.github.com/users/sergey-kucher/following{/other_user}","gists_url":"https://api.github.com/users/sergey-kucher/gists{/gist_id}","starred_url":"https://api.github.com/users/sergey-kucher/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sergey-kucher/subscriptions","organizations_url":"https://api.github.com/users/sergey-kucher/orgs","repos_url":"https://api.github.com/users/sergey-kucher/repos","events_url":"https://api.github.com/users/sergey-kucher/events{/privacy}","received_events_url":"https://api.github.com/users/sergey-kucher/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-08-09T14:40:22Z","updated_at":"2015-08-09T15:01:31Z","closed_at":null,"body":"Example\r\n```crystal\r\nary = %w(a b c d)\r\nhash = {\"b\" => 2, \"c\" => 3}\r\n\r\nwhile char = ary.pop? && num = hash[char]?\r\n  puts num\r\nend\r\n```\r\nRaises `Syntax error in eval:4: unexpected token: =` (http://carc.in/#/r/alf)\r\n\r\nFirst problem is second assignment in expression (http://carc.in/#/r/aln)\r\n```crystal\r\na = 1 && b = a + 1 # Syntax error in eval:1: unexpected token: =\r\n```\r\n\r\nSecond problem is accessibility of `a` (http://carc.in/#/r/alo)\r\n```crystal\r\na = 1 && a + 1 # Error in line 1: undefined local variable or method 'a'\r\n```"},"comment":{"url":"https://api.github.com/repos/manastech/crystal/issues/comments/129195509","html_url":"https://github.com/manastech/crystal/issues/1135#issuecomment-129195509","issue_url":"https://api.github.com/repos/manastech/crystal/issues/1135","id":129195509,"user":{"login":"kirbyfan64","id":1690697,"avatar_url":"https://avatars.githubusercontent.com/u/1690697?v=3","gravatar_id":"","url":"https://api.github.com/users/kirbyfan64","html_url":"https://github.com/kirbyfan64","followers_url":"https://api.github.com/users/kirbyfan64/followers","following_url":"https://api.github.com/users/kirbyfan64/following{/other_user}","gists_url":"https://api.github.com/users/kirbyfan64/gists{/gist_id}","starred_url":"https://api.github.com/users/kirbyfan64/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kirbyfan64/subscriptions","organizations_url":"https://api.github.com/users/kirbyfan64/orgs","repos_url":"https://api.github.com/users/kirbyfan64/repos","events_url":"https://api.github.com/users/kirbyfan64/events{/privacy}","received_events_url":"https://api.github.com/users/kirbyfan64/received_events","type":"User","site_admin":false},"created_at":"2015-08-09T15:01:31Z","updated_at":"2015-08-09T15:01:31Z","body":"So you're basically doing\r\n\r\n```ruby\r\nchar = (ary.pop? && (num = hash[char]?))\r\n```\r\n"}}