{"action":"created","issue":{"url":"https://api.github.com/repos/manastech/crystal/issues/1732","labels_url":"https://api.github.com/repos/manastech/crystal/issues/1732/labels{/name}","comments_url":"https://api.github.com/repos/manastech/crystal/issues/1732/comments","events_url":"https://api.github.com/repos/manastech/crystal/issues/1732/events","html_url":"https://github.com/manastech/crystal/issues/1732","id":111210880,"number":1732,"title":"Exception handling syntax is not Ruby compliant","user":{"login":"lepieru","id":6004029,"avatar_url":"https://avatars.githubusercontent.com/u/6004029?v=3","gravatar_id":"","url":"https://api.github.com/users/lepieru","html_url":"https://github.com/lepieru","followers_url":"https://api.github.com/users/lepieru/followers","following_url":"https://api.github.com/users/lepieru/following{/other_user}","gists_url":"https://api.github.com/users/lepieru/gists{/gist_id}","starred_url":"https://api.github.com/users/lepieru/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lepieru/subscriptions","organizations_url":"https://api.github.com/users/lepieru/orgs","repos_url":"https://api.github.com/users/lepieru/repos","events_url":"https://api.github.com/users/lepieru/events{/privacy}","received_events_url":"https://api.github.com/users/lepieru/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-10-13T15:54:51Z","updated_at":"2015-10-13T16:40:59Z","closed_at":null,"body":"The Crystal rescue syntax is not Ruby compliant. With exception handling, Crystal failed to run Ruby code, and vice versa.\r\n\r\nIn Crystal, it looks like :\r\n\r\n```ruby\r\nrescue e : TypeOfException\r\n```\r\n\r\nBut in Ruby, we can see :\r\n\r\n```ruby\r\nrescue TypeOfExcepion => e\r\n```\r\n\r\nI think it is weird to choose not to follow the Ruby syntax on this kind of detail. Would someone kindly put me in the picture ?\r\n\r\nSeriously, this is not about the best syntax, I just complain about this unexpected incompatibility."},"comment":{"url":"https://api.github.com/repos/manastech/crystal/issues/comments/147771784","html_url":"https://github.com/manastech/crystal/issues/1732#issuecomment-147771784","issue_url":"https://api.github.com/repos/manastech/crystal/issues/1732","id":147771784,"user":{"login":"asterite","id":209371,"avatar_url":"https://avatars.githubusercontent.com/u/209371?v=3","gravatar_id":"","url":"https://api.github.com/users/asterite","html_url":"https://github.com/asterite","followers_url":"https://api.github.com/users/asterite/followers","following_url":"https://api.github.com/users/asterite/following{/other_user}","gists_url":"https://api.github.com/users/asterite/gists{/gist_id}","starred_url":"https://api.github.com/users/asterite/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/asterite/subscriptions","organizations_url":"https://api.github.com/users/asterite/orgs","repos_url":"https://api.github.com/users/asterite/repos","events_url":"https://api.github.com/users/asterite/events{/privacy}","received_events_url":"https://api.github.com/users/asterite/received_events","type":"User","site_admin":false},"created_at":"2015-10-13T16:40:59Z","updated_at":"2015-10-13T16:40:59Z","body":"1. Crystal is not a Ruby implementation, there are many syntax differences\r\n2. `=>` is used in Ruby for hash literal. In crystal we use `:` for type restrictions, so we think `:` is more consistent. We think `=>` in exception syntax in Ruby is inconsistent."}}