{"action":"created","issue":{"url":"https://api.github.com/repos/dart-lang/yaml/issues/16","labels_url":"https://api.github.com/repos/dart-lang/yaml/issues/16/labels{/name}","comments_url":"https://api.github.com/repos/dart-lang/yaml/issues/16/comments","events_url":"https://api.github.com/repos/dart-lang/yaml/issues/16/events","html_url":"https://github.com/dart-lang/yaml/pull/16","id":108771955,"number":16,"title":"fixes #15, strong mode errors","user":{"login":"jmesserly","id":1081711,"avatar_url":"https://avatars.githubusercontent.com/u/1081711?v=3","gravatar_id":"","url":"https://api.github.com/users/jmesserly","html_url":"https://github.com/jmesserly","followers_url":"https://api.github.com/users/jmesserly/followers","following_url":"https://api.github.com/users/jmesserly/following{/other_user}","gists_url":"https://api.github.com/users/jmesserly/gists{/gist_id}","starred_url":"https://api.github.com/users/jmesserly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmesserly/subscriptions","organizations_url":"https://api.github.com/users/jmesserly/orgs","repos_url":"https://api.github.com/users/jmesserly/repos","events_url":"https://api.github.com/users/jmesserly/events{/privacy}","received_events_url":"https://api.github.com/users/jmesserly/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":11,"created_at":"2015-09-29T00:22:41Z","updated_at":"2015-09-29T23:21:49Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/dart-lang/yaml/pulls/16","html_url":"https://github.com/dart-lang/yaml/pull/16","diff_url":"https://github.com/dart-lang/yaml/pull/16.diff","patch_url":"https://github.com/dart-lang/yaml/pull/16.patch"},"body":"most of it was refactoring to avoid an assignment in a closure, which disabled type promotion"},"comment":{"url":"https://api.github.com/repos/dart-lang/yaml/issues/comments/144218823","html_url":"https://github.com/dart-lang/yaml/pull/16#issuecomment-144218823","issue_url":"https://api.github.com/repos/dart-lang/yaml/issues/16","id":144218823,"user":{"login":"vsmenon","id":2119553,"avatar_url":"https://avatars.githubusercontent.com/u/2119553?v=3","gravatar_id":"","url":"https://api.github.com/users/vsmenon","html_url":"https://github.com/vsmenon","followers_url":"https://api.github.com/users/vsmenon/followers","following_url":"https://api.github.com/users/vsmenon/following{/other_user}","gists_url":"https://api.github.com/users/vsmenon/gists{/gist_id}","starred_url":"https://api.github.com/users/vsmenon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vsmenon/subscriptions","organizations_url":"https://api.github.com/users/vsmenon/orgs","repos_url":"https://api.github.com/users/vsmenon/repos","events_url":"https://api.github.com/users/vsmenon/events{/privacy}","received_events_url":"https://api.github.com/users/vsmenon/received_events","type":"User","site_admin":false},"created_at":"2015-09-29T23:21:49Z","updated_at":"2015-09-29T23:21:49Z","body":"@nex3 I don't see any issue in @jmesserly 's patch here that will be improved in DDC other than `documents.map` - at least nothing planned.  For token, the simplest alternative fix is to type token as `dynamic`.  That matches what non-strong mode is \"inferring\" today, but being explicit about it instead of silent.  Typing as `Token` should given you warnings today without strong mode.  \r\n\r\n@devoncarew Errors are most serious.  If you --force-compile, we'll generate code anyway and it might work, but bugs will be harder to catch.  Warnings don't stop us from compiling - and if there really is a problem, we should throw a meaningful error at runtime - we'll generating a runtime check.  Prettiness of output is useful due to dynamic operations - those are reported as just info right now.  "}}