{"action":"created","issue":{"url":"https://api.github.com/repos/dotnet/csharplang/issues/562","repository_url":"https://api.github.com/repos/dotnet/csharplang","labels_url":"https://api.github.com/repos/dotnet/csharplang/issues/562/labels{/name}","comments_url":"https://api.github.com/repos/dotnet/csharplang/issues/562/comments","events_url":"https://api.github.com/repos/dotnet/csharplang/issues/562/events","html_url":"https://github.com/dotnet/csharplang/issues/562","id":227590075,"number":562,"title":"Poll: `until` in addition to `while`","user":{"login":"lachbaer","id":17041498,"avatar_url":"https://avatars3.githubusercontent.com/u/17041498?v=3","gravatar_id":"","url":"https://api.github.com/users/lachbaer","html_url":"https://github.com/lachbaer","followers_url":"https://api.github.com/users/lachbaer/followers","following_url":"https://api.github.com/users/lachbaer/following{/other_user}","gists_url":"https://api.github.com/users/lachbaer/gists{/gist_id}","starred_url":"https://api.github.com/users/lachbaer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lachbaer/subscriptions","organizations_url":"https://api.github.com/users/lachbaer/orgs","repos_url":"https://api.github.com/users/lachbaer/repos","events_url":"https://api.github.com/users/lachbaer/events{/privacy}","received_events_url":"https://api.github.com/users/lachbaer/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2017-05-10T07:29:52Z","updated_at":"2017-05-10T13:31:25Z","closed_at":null,"body":"Because it always comes up from time to time 😃 \r\n\r\nThe `until` keyword is available in many other programming languages and is made much use of. In C-derived languages however it does not exist, because it can be expressed by `while (!(...))`. Nevertheless, there seem to be quite some people who would like to have it additionally, not only in C#.\r\n\r\nThis poll **is not** about discussing `until`! It shall only be a _rough_ survey on how community members currently think.\r\n\r\nSample:\r\n```cs\r\ndo {\r\n    PullNewItems(itemlist, source);\r\n    Process(itemlist);\r\n} while (!(list.IsFull || source.IsEmpty));\r\n```\r\nvs.\r\n```cs\r\ndo {\r\n    PullNewItems(itemlist, source);\r\n    Process(itemlist);\r\n} until (list.IsFull || source.IsEmpty);\r\n```\r\n## Poll\r\n* ❤️ I would love to see it in the language soon (it eases conditions for me)\r\n* 🎉 If it were available I would *certainly* use it instead of `while (!...)`\r\n* 👍 It's okay, I *might* use it sometimes instead of `while (!...)`\r\n* 😃 I don't care, but I'll most probably stick with the existing `while` construct\r\n* 👎 It does not belong in the language! All users shall learn `while(!...)` as reading 'until' if they like\r\n* 😕 The other options don't reflect my opinion. Feel free to comment below."},"comment":{"url":"https://api.github.com/repos/dotnet/csharplang/issues/comments/300482473","html_url":"https://github.com/dotnet/csharplang/issues/562#issuecomment-300482473","issue_url":"https://api.github.com/repos/dotnet/csharplang/issues/562","id":300482473,"user":{"login":"HaloFour","id":10102290,"avatar_url":"https://avatars2.githubusercontent.com/u/10102290?v=3","gravatar_id":"","url":"https://api.github.com/users/HaloFour","html_url":"https://github.com/HaloFour","followers_url":"https://api.github.com/users/HaloFour/followers","following_url":"https://api.github.com/users/HaloFour/following{/other_user}","gists_url":"https://api.github.com/users/HaloFour/gists{/gist_id}","starred_url":"https://api.github.com/users/HaloFour/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HaloFour/subscriptions","organizations_url":"https://api.github.com/users/HaloFour/orgs","repos_url":"https://api.github.com/users/HaloFour/repos","events_url":"https://api.github.com/users/HaloFour/events{/privacy}","received_events_url":"https://api.github.com/users/HaloFour/received_events","type":"User","site_admin":false},"created_at":"2017-05-10T13:31:25Z","updated_at":"2017-05-10T13:31:25Z","body":"I have my doubts that the team are considering these polls much in general.  The participating audience here is just too small.  It's not like UserVoice where we're amassing thousands of votes.\r\n\r\nI'll put up a separate proposal/discussion for the `!` idea, though."}}
{"actor":{"display_login":"HaloFour"}}