{"action":"created","issue":{"url":"https://api.github.com/repos/mattneub/Programming-iOS-Book-Examples/issues/4","repository_url":"https://api.github.com/repos/mattneub/Programming-iOS-Book-Examples","labels_url":"https://api.github.com/repos/mattneub/Programming-iOS-Book-Examples/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/mattneub/Programming-iOS-Book-Examples/issues/4/comments","events_url":"https://api.github.com/repos/mattneub/Programming-iOS-Book-Examples/issues/4/events","html_url":"https://github.com/mattneub/Programming-iOS-Book-Examples/pull/4","id":260087791,"number":4,"title":"added an example of numeric literal ","user":{"login":"darrellhz","id":14962871,"avatar_url":"https://avatars3.githubusercontent.com/u/14962871?v=4","gravatar_id":"","url":"https://api.github.com/users/darrellhz","html_url":"https://github.com/darrellhz","followers_url":"https://api.github.com/users/darrellhz/followers","following_url":"https://api.github.com/users/darrellhz/following{/other_user}","gists_url":"https://api.github.com/users/darrellhz/gists{/gist_id}","starred_url":"https://api.github.com/users/darrellhz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/darrellhz/subscriptions","organizations_url":"https://api.github.com/users/darrellhz/orgs","repos_url":"https://api.github.com/users/darrellhz/repos","events_url":"https://api.github.com/users/darrellhz/events{/privacy}","received_events_url":"https://api.github.com/users/darrellhz/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-09-24T14:17:47Z","updated_at":"2017-09-24T14:29:04Z","closed_at":"2017-09-24T14:29:04Z","author_association":"NONE","pull_request":{"url":"https://api.github.com/repos/mattneub/Programming-iOS-Book-Examples/pulls/4","html_url":"https://github.com/mattneub/Programming-iOS-Book-Examples/pull/4","diff_url":"https://github.com/mattneub/Programming-iOS-Book-Examples/pull/4.diff","patch_url":"https://github.com/mattneub/Programming-iOS-Book-Examples/pull/4.patch"},"body":"Dear Matt Neuburg:\r\nThank you so much for your great contribution on all of the iOS books you've published. \r\nIn your latest book iOS 10 Programming Fundamentals with Swift on page 173 about the statement on bridging from a Swift type to a bridged Objective-C type:\"In Swift 3, in general, to cross the bridge from a Swift type to a bridged Objective-C type, you will need to cast explicitly (except in the case of a string literal)\". I found not only string literal, but also numeric literal is not required to be cast explicitly when cross the bridge from a Swift type to a bridged Objective-C type. So the fourth example \"let i : NSNumber = 1 as NSNumber   // Int to NSNumber\" can also be written as \"let i : NSNumber = 1 \". I tested it on both Xcode 8.3.3 and Xcode 9. I was wondering if it's a mistake or not. I'm so sorry for taking your time."},"comment":{"url":"https://api.github.com/repos/mattneub/Programming-iOS-Book-Examples/issues/comments/331713695","html_url":"https://github.com/mattneub/Programming-iOS-Book-Examples/pull/4#issuecomment-331713695","issue_url":"https://api.github.com/repos/mattneub/Programming-iOS-Book-Examples/issues/4","id":331713695,"user":{"login":"mattneub","id":838939,"avatar_url":"https://avatars3.githubusercontent.com/u/838939?v=4","gravatar_id":"","url":"https://api.github.com/users/mattneub","html_url":"https://github.com/mattneub","followers_url":"https://api.github.com/users/mattneub/followers","following_url":"https://api.github.com/users/mattneub/following{/other_user}","gists_url":"https://api.github.com/users/mattneub/gists{/gist_id}","starred_url":"https://api.github.com/users/mattneub/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mattneub/subscriptions","organizations_url":"https://api.github.com/users/mattneub/orgs","repos_url":"https://api.github.com/users/mattneub/repos","events_url":"https://api.github.com/users/mattneub/events{/privacy}","received_events_url":"https://api.github.com/users/mattneub/received_events","type":"User","site_admin":false},"created_at":"2017-09-24T14:29:04Z","updated_at":"2017-09-24T14:29:04Z","author_association":"OWNER","body":"What I said was correct for iOS 10 and Swift 3 at the time I wrote the book. Since then, Apple changed the Swift language, including in Xcode 8.3.3 and Xcode 9. If you want to know how Swift works _now_, get my _new_ book, iOS 11 Programming Fundamentals with Swift. — Now please, please, please, stop misusing my github comments like this. You can email me directly if you have questions (though at the moment I'd rather you didn't, because I'm working on my other book). My books have an errata page at O'Reilly where you can leave stuff like this."}}
{"actor":{"display_login":"mattneub"}}