{"action":"created","issue":{"url":"https://api.github.com/repos/MakeSchool-Tutorials/Swift-Language-Playgrounds/issues/11","repository_url":"https://api.github.com/repos/MakeSchool-Tutorials/Swift-Language-Playgrounds","labels_url":"https://api.github.com/repos/MakeSchool-Tutorials/Swift-Language-Playgrounds/issues/11/labels{/name}","comments_url":"https://api.github.com/repos/MakeSchool-Tutorials/Swift-Language-Playgrounds/issues/11/comments","events_url":"https://api.github.com/repos/MakeSchool-Tutorials/Swift-Language-Playgrounds/issues/11/events","html_url":"https://github.com/MakeSchool-Tutorials/Swift-Language-Playgrounds/issues/11","id":159266498,"number":11,"title":"P04 Optionals","user":{"login":"soggybag","id":762192,"avatar_url":"https://avatars.githubusercontent.com/u/762192?v=3","gravatar_id":"","url":"https://api.github.com/users/soggybag","html_url":"https://github.com/soggybag","followers_url":"https://api.github.com/users/soggybag/followers","following_url":"https://api.github.com/users/soggybag/following{/other_user}","gists_url":"https://api.github.com/users/soggybag/gists{/gist_id}","starred_url":"https://api.github.com/users/soggybag/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/soggybag/subscriptions","organizations_url":"https://api.github.com/users/soggybag/orgs","repos_url":"https://api.github.com/users/soggybag/repos","events_url":"https://api.github.com/users/soggybag/events{/privacy}","received_events_url":"https://api.github.com/users/soggybag/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-06-08T20:44:35Z","updated_at":"2016-06-08T23:44:49Z","closed_at":null,"body":"Some questions for students on optionals\r\n\r\n1. Can you see any situation where an optional might be useful or required? \r\n2. Give me an example of a variable with a type that would be a good optional value? (example username:String, would be good as an optional since a user may not have yet logged in)\r\n3. Define an optional String with a value (var name: String? = \"Joe\")\r\n4. Define an optional Float with no value (shoeSize: Float? = nil)\r\n5. Can any type (String, Float, etc) be optional? (Yes)\r\n6. Assign a value to shoeSize, after it is defined. (shoeSize = 9.5)\r\n7. Display your optional clues using print() be sure to unwrap them!\r\n8. Combine the values your created earlier into a message. It should say something like \"(name) has a shoe size of (shoeSize)\" (\"Joe has a shoe size of 9.5\")\r\n9. Use the if let syntax to check that shoe size is set, get then print the message: \"Your shoe size is: (shoeSize)\"\r\n"},"comment":{"url":"https://api.github.com/repos/MakeSchool-Tutorials/Swift-Language-Playgrounds/issues/comments/224764298","html_url":"https://github.com/MakeSchool-Tutorials/Swift-Language-Playgrounds/issues/11#issuecomment-224764298","issue_url":"https://api.github.com/repos/MakeSchool-Tutorials/Swift-Language-Playgrounds/issues/11","id":224764298,"user":{"login":"rshankras","id":2097525,"avatar_url":"https://avatars.githubusercontent.com/u/2097525?v=3","gravatar_id":"","url":"https://api.github.com/users/rshankras","html_url":"https://github.com/rshankras","followers_url":"https://api.github.com/users/rshankras/followers","following_url":"https://api.github.com/users/rshankras/following{/other_user}","gists_url":"https://api.github.com/users/rshankras/gists{/gist_id}","starred_url":"https://api.github.com/users/rshankras/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rshankras/subscriptions","organizations_url":"https://api.github.com/users/rshankras/orgs","repos_url":"https://api.github.com/users/rshankras/repos","events_url":"https://api.github.com/users/rshankras/events{/privacy}","received_events_url":"https://api.github.com/users/rshankras/received_events","type":"User","site_admin":false},"created_at":"2016-06-08T23:44:49Z","updated_at":"2016-06-08T23:44:49Z","body":"Question from a student perspective?\r\n\r\nWhen do we use implicitly unwrapped optionals? \r\n\r\n1.  When referencing interface objects in your code\r\n     -  You might be using many UI objects and can avoid using optional bindings for each IBOutlets.\r\n\r\nany other scenarios?\r\n\r\n"}}
{"actor":{"display_login":"rshankras"}}