{"action":"created","issue":{"url":"https://api.github.com/repos/lrhn/dep-configured-imports/issues/3","labels_url":"https://api.github.com/repos/lrhn/dep-configured-imports/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/lrhn/dep-configured-imports/issues/3/comments","events_url":"https://api.github.com/repos/lrhn/dep-configured-imports/issues/3/events","html_url":"https://github.com/lrhn/dep-configured-imports/issues/3","id":59735135,"number":3,"title":"Less punctuation?","user":{"login":"munificent","id":46275,"avatar_url":"https://avatars.githubusercontent.com/u/46275?v=3","gravatar_id":"","url":"https://api.github.com/users/munificent","html_url":"https://github.com/munificent","followers_url":"https://api.github.com/users/munificent/followers","following_url":"https://api.github.com/users/munificent/following{/other_user}","gists_url":"https://api.github.com/users/munificent/gists{/gist_id}","starred_url":"https://api.github.com/users/munificent/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/munificent/subscriptions","organizations_url":"https://api.github.com/users/munificent/orgs","repos_url":"https://api.github.com/users/munificent/repos","events_url":"https://api.github.com/users/munificent/events{/privacy}","received_events_url":"https://api.github.com/users/munificent/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":14,"created_at":"2015-03-04T01:12:01Z","updated_at":"2015-03-06T18:56:06Z","closed_at":null,"body":"The `||` and `:` seem strange and arbitrary to me. I don't think a random Dart user could easily intuit what they do, especially since their meaning is different from how those operators are understood in other contexts.\r\n\r\nHowever, there *is* already a language feature that:\r\n\r\n1. Has a series of constant expressions.\r\n2. Tests them in order.\r\n3. Evaluates some other code on the first on that matches.\r\n4. Allows a default when nothing matches.\r\n\r\nHow about we leverage that?\r\n\r\n```dart\r\nimport case dart.platform == \"browser\": \"some_uri.dart\"\r\n       case dart.platform == \"standalone\": \"other_uri.dart\"\r\n       default: \"default_uri.dart\"\r\n    deferred as foo show x hide y;\r\n```\r\n\r\nWhat do you think?"},"comment":{"url":"https://api.github.com/repos/lrhn/dep-configured-imports/issues/comments/77614391","html_url":"https://github.com/lrhn/dep-configured-imports/issues/3#issuecomment-77614391","issue_url":"https://api.github.com/repos/lrhn/dep-configured-imports/issues/3","id":77614391,"user":{"login":"zoechi","id":405837,"avatar_url":"https://avatars.githubusercontent.com/u/405837?v=3","gravatar_id":"","url":"https://api.github.com/users/zoechi","html_url":"https://github.com/zoechi","followers_url":"https://api.github.com/users/zoechi/followers","following_url":"https://api.github.com/users/zoechi/following{/other_user}","gists_url":"https://api.github.com/users/zoechi/gists{/gist_id}","starred_url":"https://api.github.com/users/zoechi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zoechi/subscriptions","organizations_url":"https://api.github.com/users/zoechi/orgs","repos_url":"https://api.github.com/users/zoechi/repos","events_url":"https://api.github.com/users/zoechi/events{/privacy}","received_events_url":"https://api.github.com/users/zoechi/received_events","type":"User","site_admin":false},"created_at":"2015-03-06T18:56:06Z","updated_at":"2015-03-06T18:56:06Z","body":"I thought of this as well and like it but it doesn't allow to specify which platforms are supported. Not sure if this is necessary though. "}}