{"action":"created","issue":{"url":"https://api.github.com/repos/dotnet/roslyn/issues/14924","repository_url":"https://api.github.com/repos/dotnet/roslyn","labels_url":"https://api.github.com/repos/dotnet/roslyn/issues/14924/labels{/name}","comments_url":"https://api.github.com/repos/dotnet/roslyn/issues/14924/comments","events_url":"https://api.github.com/repos/dotnet/roslyn/issues/14924/events","html_url":"https://github.com/dotnet/roslyn/issues/14924","id":186971878,"number":14924,"title":"want a new syntax...","user":{"login":"mrhuo","id":7203046,"avatar_url":"https://avatars.githubusercontent.com/u/7203046?v=3","gravatar_id":"","url":"https://api.github.com/users/mrhuo","html_url":"https://github.com/mrhuo","followers_url":"https://api.github.com/users/mrhuo/followers","following_url":"https://api.github.com/users/mrhuo/following{/other_user}","gists_url":"https://api.github.com/users/mrhuo/gists{/gist_id}","starred_url":"https://api.github.com/users/mrhuo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrhuo/subscriptions","organizations_url":"https://api.github.com/users/mrhuo/orgs","repos_url":"https://api.github.com/users/mrhuo/repos","events_url":"https://api.github.com/users/mrhuo/events{/privacy}","received_events_url":"https://api.github.com/users/mrhuo/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2016-11-03T03:25:56Z","updated_at":"2016-11-03T18:48:46Z","closed_at":null,"body":"**I would like to propose a new syntax, the existing similar code as follows:**\r\n\r\n    public string queryOrderNo(string userId, string address, string name)\r\n    {\r\n        if(string.IsNullOrEmpty(userId)){\r\n            return \"no userid\";\r\n        }\r\n        if(string.IsNullOrEmpty(address)){\r\n            throw new Exception();\r\n        }\r\n        if(string.IsNullOrEmpty(name)){\r\n            throw new Exception();\r\n        }\r\n        //...other code\r\n    }\r\n\r\n**As you see, like more more _if_ keywords..**\r\n\r\nCan we like this?\r\n\r\n    public string queryOrderNo(string userId, string address, string name)\r\n    {\r\n        return string.IsNullOrEmpty(userId) ??? \"no userid\";\r\n        throw string.IsNullOrEmpty(address) ??? new Exception();\r\n        throw string.IsNullOrEmpty(name) ??? new Exception();\r\n\r\n        //...other code\r\n    }\r\n\r\n**Is help for your?**"},"comment":{"url":"https://api.github.com/repos/dotnet/roslyn/issues/comments/258238557","html_url":"https://github.com/dotnet/roslyn/issues/14924#issuecomment-258238557","issue_url":"https://api.github.com/repos/dotnet/roslyn/issues/14924","id":258238557,"user":{"login":"mrhuo","id":7203046,"avatar_url":"https://avatars.githubusercontent.com/u/7203046?v=3","gravatar_id":"","url":"https://api.github.com/users/mrhuo","html_url":"https://github.com/mrhuo","followers_url":"https://api.github.com/users/mrhuo/followers","following_url":"https://api.github.com/users/mrhuo/following{/other_user}","gists_url":"https://api.github.com/users/mrhuo/gists{/gist_id}","starred_url":"https://api.github.com/users/mrhuo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrhuo/subscriptions","organizations_url":"https://api.github.com/users/mrhuo/orgs","repos_url":"https://api.github.com/users/mrhuo/repos","events_url":"https://api.github.com/users/mrhuo/events{/privacy}","received_events_url":"https://api.github.com/users/mrhuo/received_events","type":"User","site_admin":false},"created_at":"2016-11-03T18:48:46Z","updated_at":"2016-11-03T18:48:46Z","body":"@zippec Thanks for reply to me, but your solution not for I want, because I want check condition first, and then run other code. but your code return outter to the method directly."}}
{"actor":{"display_login":"mrhuo"}}