{"action":"created","issue":{"url":"https://api.github.com/repos/getify/You-Dont-Know-JS/issues/759","repository_url":"https://api.github.com/repos/getify/You-Dont-Know-JS","labels_url":"https://api.github.com/repos/getify/You-Dont-Know-JS/issues/759/labels{/name}","comments_url":"https://api.github.com/repos/getify/You-Dont-Know-JS/issues/759/comments","events_url":"https://api.github.com/repos/getify/You-Dont-Know-JS/issues/759/events","html_url":"https://github.com/getify/You-Dont-Know-JS/issues/759","id":159684587,"number":759,"title":"Dynamic typing vs Weak typing","user":{"login":"rustyworks","id":9553833,"avatar_url":"https://avatars.githubusercontent.com/u/9553833?v=3","gravatar_id":"","url":"https://api.github.com/users/rustyworks","html_url":"https://github.com/rustyworks","followers_url":"https://api.github.com/users/rustyworks/followers","following_url":"https://api.github.com/users/rustyworks/following{/other_user}","gists_url":"https://api.github.com/users/rustyworks/gists{/gist_id}","starred_url":"https://api.github.com/users/rustyworks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rustyworks/subscriptions","organizations_url":"https://api.github.com/users/rustyworks/orgs","repos_url":"https://api.github.com/users/rustyworks/repos","events_url":"https://api.github.com/users/rustyworks/events{/privacy}","received_events_url":"https://api.github.com/users/rustyworks/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-06-10T17:34:58Z","updated_at":"2016-06-10T17:55:31Z","closed_at":null,"body":"https://github.com/getify/You-Dont-Know-JS/blob/master/up%20&%20going/ch1.md#variables\r\n\"Weak typing, otherwise known as dynamic typing, allows a variable to hold any type of value at any time\"\r\n\r\nI think it is wrong, because weak typing means that you can do operation between two different type variable.\r\nFor example: 1 + \"1\" // This is ok in weak typing but not ok in strong typing\r\n\r\nThe dynamic typing is that a variable can be inserted without declaring the type\r\nFor example: var a = 1; a = \"a\" // This is ok in dynamic typing but not ok in static typing.\r\n\r\nI hope you reconsider the terms. Thank you."},"comment":{"url":"https://api.github.com/repos/getify/You-Dont-Know-JS/issues/comments/225251285","html_url":"https://github.com/getify/You-Dont-Know-JS/issues/759#issuecomment-225251285","issue_url":"https://api.github.com/repos/getify/You-Dont-Know-JS/issues/759","id":225251285,"user":{"login":"getify","id":150330,"avatar_url":"https://avatars.githubusercontent.com/u/150330?v=3","gravatar_id":"","url":"https://api.github.com/users/getify","html_url":"https://github.com/getify","followers_url":"https://api.github.com/users/getify/followers","following_url":"https://api.github.com/users/getify/following{/other_user}","gists_url":"https://api.github.com/users/getify/gists{/gist_id}","starred_url":"https://api.github.com/users/getify/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/getify/subscriptions","organizations_url":"https://api.github.com/users/getify/orgs","repos_url":"https://api.github.com/users/getify/repos","events_url":"https://api.github.com/users/getify/events{/privacy}","received_events_url":"https://api.github.com/users/getify/received_events","type":"User","site_admin":false},"created_at":"2016-06-10T17:55:31Z","updated_at":"2016-06-10T17:55:31Z","body":"In an intro book, I don't think those fine distinctions matter that much. Explaining it fully would be way beyond a beginner, but not talking about it at all does a disservice to the learner.\r\n\r\nWeak typing is about whether coercion can happen implicitly, and dynamic typing is about whether values of different types can go in a variable. Those are not that far off conceptually, especially for the beginning programmer."}}
{"actor":{"display_login":"getify"}}