{"action":"created","issue":{"url":"https://api.github.com/repos/felixangell/alloy/issues/218","labels_url":"https://api.github.com/repos/felixangell/alloy/issues/218/labels{/name}","comments_url":"https://api.github.com/repos/felixangell/alloy/issues/218/comments","events_url":"https://api.github.com/repos/felixangell/alloy/issues/218/events","html_url":"https://github.com/felixangell/alloy/issues/218","id":74517987,"number":218,"title":"Proposal: cleaner syntax for Option Types","user":{"login":"felixangell","id":6254332,"avatar_url":"https://avatars.githubusercontent.com/u/6254332?v=3","gravatar_id":"","url":"https://api.github.com/users/felixangell","html_url":"https://github.com/felixangell","followers_url":"https://api.github.com/users/felixangell/followers","following_url":"https://api.github.com/users/felixangell/following{/other_user}","gists_url":"https://api.github.com/users/felixangell/gists{/gist_id}","starred_url":"https://api.github.com/users/felixangell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/felixangell/subscriptions","organizations_url":"https://api.github.com/users/felixangell/orgs","repos_url":"https://api.github.com/users/felixangell/repos","events_url":"https://api.github.com/users/felixangell/events{/privacy}","received_events_url":"https://api.github.com/users/felixangell/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/felixangell/alloy/labels/proposal","name":"proposal","color":"adbeef"},{"url":"https://api.github.com/repos/felixangell/alloy/labels/rfc","name":"rfc","color":"d4c5f9"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-05-08T22:32:52Z","updated_at":"2015-05-10T11:30:07Z","closed_at":null,"body":"So we currently do Option Types with angle brackets:\r\n\r\n```\r\nfn div(a: int, b: int): <int> {\r\n\r\n}\r\n```\r\n\r\nHowever, I was looking at Swift, and they use the \"?\" which looks a lot cleaner and it's one less character!\r\n\r\n```\r\nfn div(a: int, b: int): ?int {\r\n\r\n}\r\n\r\nfn div(a: int, b: int): int? {\r\n\r\n}\r\n```\r\n\r\nAny other suggestions welcome, or we can keep it the same. I think the \"?\" is a bit more semantic."},"comment":{"url":"https://api.github.com/repos/felixangell/alloy/issues/comments/100625850","html_url":"https://github.com/felixangell/alloy/issues/218#issuecomment-100625850","issue_url":"https://api.github.com/repos/felixangell/alloy/issues/218","id":100625850,"user":{"login":"felixangell","id":6254332,"avatar_url":"https://avatars.githubusercontent.com/u/6254332?v=3","gravatar_id":"","url":"https://api.github.com/users/felixangell","html_url":"https://github.com/felixangell","followers_url":"https://api.github.com/users/felixangell/followers","following_url":"https://api.github.com/users/felixangell/following{/other_user}","gists_url":"https://api.github.com/users/felixangell/gists{/gist_id}","starred_url":"https://api.github.com/users/felixangell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/felixangell/subscriptions","organizations_url":"https://api.github.com/users/felixangell/orgs","repos_url":"https://api.github.com/users/felixangell/repos","events_url":"https://api.github.com/users/felixangell/events{/privacy}","received_events_url":"https://api.github.com/users/felixangell/received_events","type":"User","site_admin":false},"created_at":"2015-05-10T11:30:07Z","updated_at":"2015-05-10T11:30:07Z","body":"Yeah, I mean that we'll do it anyway, even if we don't have generics :+1: "}}