{"action":"closed","issue":{"url":"https://api.github.com/repos/dart-lang/www.dartlang.org/issues/1488","labels_url":"https://api.github.com/repos/dart-lang/www.dartlang.org/issues/1488/labels{/name}","comments_url":"https://api.github.com/repos/dart-lang/www.dartlang.org/issues/1488/comments","events_url":"https://api.github.com/repos/dart-lang/www.dartlang.org/issues/1488/events","html_url":"https://github.com/dart-lang/www.dartlang.org/issues/1488","id":110703069,"number":1488,"title":"Fix ?: description in code lab","user":{"login":"kwalrath","id":2164483,"avatar_url":"https://avatars.githubusercontent.com/u/2164483?v=3","gravatar_id":"","url":"https://api.github.com/users/kwalrath","html_url":"https://github.com/kwalrath","followers_url":"https://api.github.com/users/kwalrath/followers","following_url":"https://api.github.com/users/kwalrath/following{/other_user}","gists_url":"https://api.github.com/users/kwalrath/gists{/gist_id}","starred_url":"https://api.github.com/users/kwalrath/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kwalrath/subscriptions","organizations_url":"https://api.github.com/users/kwalrath/orgs","repos_url":"https://api.github.com/users/kwalrath/repos","events_url":"https://api.github.com/users/kwalrath/events{/privacy}","received_events_url":"https://api.github.com/users/kwalrath/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/dart-lang/www.dartlang.org/labels/CodeLab","name":"CodeLab","color":"d4c5f9"}],"state":"closed","locked":false,"assignee":{"login":"Sfshaza","id":6293442,"avatar_url":"https://avatars.githubusercontent.com/u/6293442?v=3","gravatar_id":"","url":"https://api.github.com/users/Sfshaza","html_url":"https://github.com/Sfshaza","followers_url":"https://api.github.com/users/Sfshaza/followers","following_url":"https://api.github.com/users/Sfshaza/following{/other_user}","gists_url":"https://api.github.com/users/Sfshaza/gists{/gist_id}","starred_url":"https://api.github.com/users/Sfshaza/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Sfshaza/subscriptions","organizations_url":"https://api.github.com/users/Sfshaza/orgs","repos_url":"https://api.github.com/users/Sfshaza/repos","events_url":"https://api.github.com/users/Sfshaza/events{/privacy}","received_events_url":"https://api.github.com/users/Sfshaza/received_events","type":"User","site_admin":false},"milestone":null,"comments":1,"created_at":"2015-10-09T17:28:07Z","updated_at":"2015-10-16T00:41:44Z","closed_at":"2015-10-16T00:41:44Z","body":"From LRHN:\r\n\r\nSomeone pointed me to a part of https://www.dartlang.org/codelabs/darrrt/ that I think could be improved\r\n(nit-pickery, but I like to pick nits).\r\nI don't know if you are the person in charge of it (but it was a qualified guess).\r\n\r\nIt says:\r\n\"The ternary operator `?:` is short-hand for an if-then-else statement.\"\r\nThat's at least slightly wrong, and somewhat misleading.\r\nI can give a longer speech about conditional branches and syntactic categories, but in short I'd prefer it to say something like:\r\n\"The conditional operator `?:` is the equivalent of an if-then-else of statements, only for expressions instead.\"\r\n\r\nI'm sure it can be expressed better, but this doesn't give the idea that you can use ?: instead of if-then-else,\r\nbut more that you use it in a similar way, but in a different context.\r\n(There have been code-reviews where it is exactly used as a short-hand for what should be an if-statement).\r\n"}}